summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-01-27 09:03:50 (GMT)
committerThomas Bruederli <thomas@roundcube.net>2014-01-27 09:04:41 (GMT)
commit10960a0b968f7bf822acc3ea1d34577918194c95 (patch)
tree6847088cb6c8f48daaf7b48f5285a341f498a7db
parentbd598513807bafd84e1b72b7d69b932cb242d423 (diff)
downloadiRony-10960a0b968f7bf822acc3ea1d34577918194c95.tar.gz
Don't convert date values using unix timestamps to avoid timezone shifts (#2802)
-rw-r--r--lib/Kolab/CardDAV/ContactsBackend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Kolab/CardDAV/ContactsBackend.php b/lib/Kolab/CardDAV/ContactsBackend.php
index 3e5f820..90878c7 100644
--- a/lib/Kolab/CardDAV/ContactsBackend.php
+++ b/lib/Kolab/CardDAV/ContactsBackend.php
@@ -711,7 +711,7 @@ class ContactsBackend extends CardDAV\Backend\AbstractBackend
foreach (array('birthday','anniversary') as $key) {
if (!empty($contact[$key]) && !$contact[$key] instanceof \DateTime) {
try {
- $contact[$key] = new \DateTime('@' . \rcube_utils::strtotime($contact[$key]));
+ $contact[$key] = new \DateTime(\rcube_utils::clean_datestr($contact[$key]));
}
catch (\Exception $e) {
$contact[$key] = null;