mirror of
https://github.com/friendica/friendica
synced 2025-04-28 20:24:24 +02:00
Add Temporal::utcNow()
This commit is contained in:
parent
38ff1b455b
commit
8aff8a76eb
51 changed files with 191 additions and 180 deletions
|
@ -82,7 +82,7 @@ class Mail
|
|||
$handles = $recip_handle . ';' . $sender_handle;
|
||||
|
||||
$fields = ['uid' => local_user(), 'guid' => $conv_guid, 'creator' => $sender_handle,
|
||||
'created' => Temporal::convert(), 'updated' => Temporal::convert(),
|
||||
'created' => Temporal::utcNow(), 'updated' => Temporal::utcNow(),
|
||||
'subject' => $subject, 'recips' => $handles];
|
||||
if (dba::insert('conv', $fields)) {
|
||||
$convid = dba::lastInsertId();
|
||||
|
@ -116,7 +116,7 @@ class Mail
|
|||
'replied' => 0,
|
||||
'uri' => $uri,
|
||||
'parent-uri' => $replyto,
|
||||
'created' => Temporal::convert()
|
||||
'created' => Temporal::utcNow()
|
||||
]
|
||||
);
|
||||
|
||||
|
@ -196,7 +196,7 @@ class Mail
|
|||
|
||||
$convid = null;
|
||||
$fields = ['uid' => $recipient['uid'], 'guid' => $conv_guid, 'creator' => $sender_handle,
|
||||
'created' => Temporal::convert(), 'updated' => Temporal::convert(),
|
||||
'created' => Temporal::utcNow(), 'updated' => Temporal::utcNow(),
|
||||
'subject' => $subject, 'recips' => $handles];
|
||||
if (dba::insert('conv', $fields)) {
|
||||
$convid = dba::lastInsertId();
|
||||
|
@ -224,7 +224,7 @@ class Mail
|
|||
'replied' => 0,
|
||||
'uri' => $uri,
|
||||
'parent-uri' => $replyto,
|
||||
'created' => Temporal::convert(),
|
||||
'created' => Temporal::utcNow(),
|
||||
'unknown' => 1
|
||||
]
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue