API: Fix date format
This commit is contained in:
parent
6b374c01ce
commit
5bd51b156a
5 changed files with 7 additions and 6 deletions
|
|
@ -108,7 +108,7 @@ class Account extends BaseDataTransferObject
|
|||
$userContactCreated = $userContact['created'] ?? DBA::NULL_DATETIME;
|
||||
|
||||
$created = $userContactCreated < $publicContactCreated && ($userContactCreated != DBA::NULL_DATETIME) ? $userContactCreated : $publicContactCreated;
|
||||
$this->created_at = DateTimeFormat::utc($created, DateTimeFormat::ATOM);
|
||||
$this->created_at = DateTimeFormat::utc($created, DateTimeFormat::API);
|
||||
|
||||
$this->note = BBCode::convert($publicContact['about'], false);
|
||||
$this->url = $publicContact['url'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue