"local" timezone in events not inheriting TZ from calendar

21 views
Skip to first unread message

Connor Barry

unread,
May 10, 2013, 6:20:13 PM5/10/13
to sabredav...@googlegroups.com
Hi all, I have a question about time zone handling:

From RFC4791:

5.2.2. CALDAV:calendar-timezone Property

Name: calendar-timezone

...
Purpose: Specifies a time zone on a calendar collection.

...
Description: The CALDAV:calendar-timezone property is used to
specify the time zone the server should rely on to resolve "date"
values and "date with local time" values (i.e., floating time) to
"date with UTC time" values.

However I'm seeing that when running FREEBUSY requests against events
having "date with local time" values, the times are not inheriting the
timezone from the calendar but instead using the local server timezone
(EST). Has anyone else see this issue?

My calendar was created using west-coast time and was created as:

<C:mkcalendar>
<D:set>
<D:prop>
<D:displayname>default</D:displayname>
<C:calendar-description>Calendar</C:calendar-description>
<C:supported-calendar-component-set>
<C:comp name="VEVENT" />
<C:comp name="VTIMEZONE" />
<C:comp name="VFREEBUSY" />
<C:comp name="VJOURNAL" />
</C:supported-calendar-component-set>
<C:calendar-timezone>
<![CDATA[
BEGIN:VCALENDAR
PRODID:-//Example Corp.//CalDAV Server//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:America/Los_Angeles
BEGIN:DAYLIGHT
TZOFFSETFROM:-0800
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
DTSTART:20070311T020000
TZNAME:PDT
TZOFFSETTO:-0700
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0700
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
DTSTART:20071104T020000
TZNAME:PST
TZOFFSETTO:-0800
END:STANDARD
END:VTIMEZONE
END:VCALENDAR
]]>
</C:calendar-timezone>
</D:prop>
</D:set>
</C:mkcalendar>

As a workaround, I found that when I define the events using the TZID
style (storing the time zone itself in each event), the conversion to
UTC during FREEBUSY requests is done correctly.

thanks,
Connor
Reply all
Reply to author
Forward
0 new messages