Avoid SQL error with wrong formatted datetime value
This commit is contained in:
parent
89cf2ea186
commit
321a36d4db
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class OnePoll
|
||||||
$last_updated = $contact['last-item'];
|
$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);
|
self::updateContact($contact, $fields);
|
||||||
Contact::unmarkForArchival($contact);
|
Contact::unmarkForArchival($contact);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue