API: "created_at" is timestamp
This commit is contained in:
parent
bd9fa88c66
commit
0a5904a001
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ class Token extends BaseDataTransferObject
|
||||||
protected $token_type;
|
protected $token_type;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
protected $scope;
|
protected $scope;
|
||||||
/** @var string (Datetime) */
|
/** @var int (timestamp) */
|
||||||
protected $created_at;
|
protected $created_at;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -53,6 +53,6 @@ class Token extends BaseDataTransferObject
|
||||||
$this->access_token = $access_token;
|
$this->access_token = $access_token;
|
||||||
$this->token_type = $token_type;
|
$this->token_type = $token_type;
|
||||||
$this->scope = $scope;
|
$this->scope = $scope;
|
||||||
$this->created_at = DateTimeFormat::utc($created_at, DateTimeFormat::JSON);
|
$this->created_at = strtotime($created_at);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue