Browse Source

Avoid SQL error with wrong formatted datetime value

pull/4977/head
Michael 4 years ago
parent
commit
321a36d4db
  1. 2
      src/Worker/OnePoll.php

2
src/Worker/OnePoll.php

@ -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…
Cancel
Save