From 1581547086c1006113765dfb2a2717d94ea1205c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 2 Aug 2013 14:41:31 +0000 Subject: [PATCH] * CardDAV/Addressbook: fixed not working sync-collection report eg. by eMclient, if server-time is different from user --- addressbook/inc/class.addressbook_bo.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_bo.inc.php b/addressbook/inc/class.addressbook_bo.inc.php index cddd4a5db6..88021a75c3 100755 --- a/addressbook/inc/class.addressbook_bo.inc.php +++ b/addressbook/inc/class.addressbook_bo.inc.php @@ -2300,7 +2300,9 @@ class addressbook_bo extends addressbook_so } else { - $ctag = $result[0]['modified']; + // need to convert modified time back to server-time (was converted to user-time by search) + // as we use it direct in server-queries eg. CardDAV sync-report and to be consistent with CalDAV + $ctag = egw_time::user2server($result[0]['modified']); } //error_log(__METHOD__.'('.array2string($owner).') returning '.array2string($ctag)); return $ctag;