Avoid SQL error with wrong formatted datetime value
This commit is contained in:
parent
89cf2ea186
commit
321a36d4db
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue