Use DateTimeFormat::utc() instead of DBM::date()
This commit is contained in:
committed by
Hypolite Petovan
parent
c55e389bbc
commit
8ddb94ef06
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user