* CardDAV/Addressbook: fixed not working sync-collection report eg. by eMclient, if server-time is different from user

This commit is contained in:
Ralf Becker 2013-08-02 14:41:31 +00:00
parent 38056379a2
commit 1581547086

View File

@ -2300,7 +2300,9 @@ class addressbook_bo extends addressbook_so
} }
else 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)); //error_log(__METHOD__.'('.array2string($owner).') returning '.array2string($ctag));
return $ctag; return $ctag;