1
1
Fork 0

Avoid SQL error with wrong formatted datetime value

This commit is contained in:
Michael 2018-05-03 20:48:35 +00:00
parent 89cf2ea186
commit 321a36d4db

View file

@ -78,7 +78,7 @@ class OnePoll
$last_updated = $contact['last-item'];
}
$fields = ['last-item' => $last_updated, 'last-update' => $updated, 'success_update' => $updated];
$fields = ['last-item' => DateTimeFormat::utc($last_updated), 'last-update' => $updated, 'success_update' => $updated];
self::updateContact($contact, $fields);
Contact::unmarkForArchival($contact);
} else {