Branch 'kolab-syncroton-2.2' - lib/kolab_sync_data_contacts.php
Aleksander Machniak
machniak at kolabsys.com
Wed Nov 20 13:05:27 CET 2013
lib/kolab_sync_data_contacts.php | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit cb8000ae4b26e5baecb51eef3d9398ef7738eec0
Author: Aleksander Machniak <alec at alec.pl>
Date: Wed Nov 20 13:04:04 2013 +0100
Fix so birthday/anniversary dates are not saved with time/timezone (Bug #2555)
diff --git a/lib/kolab_sync_data_contacts.php b/lib/kolab_sync_data_contacts.php
index 7d703ef..02a77bc 100644
--- a/lib/kolab_sync_data_contacts.php
+++ b/lib/kolab_sync_data_contacts.php
@@ -223,6 +223,15 @@ class kolab_sync_data_contacts extends kolab_sync_data
continue 2;
}
break;
+
+ case 'birthday':
+ case 'anniversary':
+ if ($value) {
+ // convert date to string format, so libkolab will store
+ // it with no time and timezone what could be incorrectly re-calculated (#2555)
+ $value = $value->format('Y-m-d');
+ }
+ break;
}
$this->setKolabDataItem($contact, $name, $value);
More information about the commits
mailing list