From 321a36d4dba8b31afea2cbf8a80b675ac8177218 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 3 May 2018 20:48:35 +0000 Subject: [PATCH] Avoid SQL error with wrong formatted datetime value --- src/Worker/OnePoll.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Worker/OnePoll.php b/src/Worker/OnePoll.php index aa3eabf57..e42612cd3 100644 --- a/src/Worker/OnePoll.php +++ b/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 {