https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89cf2ea
)
Avoid SQL error with wrong formatted datetime value
author
Michael
<heluecht@pirati.ca>
Thu, 3 May 2018 20:48:35 +0000
(20:48 +0000)
committer
Michael
<heluecht@pirati.ca>
Thu, 3 May 2018 20:48:35 +0000
(20:48 +0000)
src/Worker/OnePoll.php
patch
|
blob
|
history
diff --git
a/src/Worker/OnePoll.php
b/src/Worker/OnePoll.php
index
aa3eabf
..
e42612c
100644
(file)
--- 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 {