1
0
Fork 0

Use DateTimeFormat::utc() instead of DBM::date()

This commit is contained in:
Hypolite Petovan 2018-07-21 08:25:11 -04:00 committed by Hypolite Petovan
commit 8ddb94ef06
7 changed files with 15 additions and 12 deletions

View file

@ -815,7 +815,7 @@ class GContact
self::fixAlternateContactAddress($contact);
if (!isset($contact["updated"])) {
$contact["updated"] = DBM::date();
$contact["updated"] = DateTimeFormat::utcNow();
}
if ($contact["network"] == NETWORK_TWITTER) {
@ -858,7 +858,7 @@ class GContact
logger("Update gcontact for ".$contact["url"], LOGGER_DEBUG);
$condition = ['`nurl` = ? AND (`generation` = 0 OR `generation` >= ?)',
normalise_link($contact["url"]), $contact["generation"]];
$contact["updated"] = DBM::date($contact["updated"]);
$contact["updated"] = DateTimeFormat::utc($contact["updated"]);
$updated = ['photo' => $contact['photo'], 'name' => $contact['name'],
'nick' => $contact['nick'], 'addr' => $contact['addr'],