Page MenuHomePhorge

D4860.id13920.diff
No OneTemporary

D4860.id13920.diff

diff --git a/lib/kolab_sync_storage.php b/lib/kolab_sync_storage.php
--- a/lib/kolab_sync_storage.php
+++ b/lib/kolab_sync_storage.php
@@ -1969,8 +1969,9 @@
);
if ($row = $db->fetch_assoc()) {
- $synctime = $row['synctime'];
- // @TODO: make sure synctime from sql is in "Y-m-d H:i:s" format
+ // MariaDB's datetime output includes microseconds, we need to remove them,
+ // it must be "Y-m-d H:i:s" format
+ $synctime = preg_match('/\.[0-9]+/', '', $row['synctime']);
$this->relations[$folderid][$synctime] = json_decode($row['data'], true);
}

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 19, 7:19 AM (20 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9881664
Default Alt Text
D4860.id13920.diff (681 B)

Event Timeline