Anaƫl Closson (openerp) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw576692-acl into
lp:openobject-addons/6.1.
Requested reviews:
Olivier Dony (OpenERP) (odo-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw576692-acl/+merge/124207
OPW 576692 : Exported timezones were not specified, and CalDAV clients like
mozilla lightning recognize timezone as local instead of UTC.
The timezone modificator is now included in the serialized caldav event without
timezone change (instead of not being added to the time part of date fields),
and should be recognized by caldav clients as UTC.
Step to reproduce :
* install caldav module
* configure software (for example mozilla lightning) to synchronize via caldav
* add events
* synchronize the external calendar software
buggy results : time values are UTC equivalent of local time instead of being
local time
patch results : time values are the same as shown on OpenERP calendar
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw576692-acl/+merge/124207
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw576692-acl.
=== modified file 'caldav/calendar.py'
--- caldav/calendar.py 2011-10-27 21:11:24 +0000
+++ caldav/calendar.py 2012-09-13 14:08:42 +0000
@@ -447,8 +447,9 @@
dtfield.params['TZID'] = [tzval.title()]
dtfield.value = self.format_date_tz(parser.parse(data[map_field]), tzval.title())
else:
+ dtfield.params['TZID'] = ['UTC']
dtfield.value = parser.parse(data[map_field])
-
+
elif map_type == 'utc'and data[map_field]:
if tzval:
local = pytz.timezone (tzval.title())
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp