#6 How to parse VTIMEZONE

open
nobody
None
5
2014-10-24
2011-12-19
Antony
No

I have a VTIMEZONE object which is referred to by a VEVENT object.

I need to be able to convert the VEVENT start/end times, which refer to the timezone specified by a VTIMEZONE object as

DTSTART;TZID="FLE Standard Time":20111004T160000

to UTC and/or local time, but I can't find a way to do it because all the method to expand the vtimezone attributes are static, e.g. icaltimezone_expand_vtimezone().

VTIMEZONE is as follows

BEGIN:VTIMEZONE
TZID:FLE Standard Time
BEGIN:STANDARD
DTSTART:16011028T040000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
TZOFFSETFROM:+0300
TZOFFSETTO:+0200
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010325T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
TZOFFSETFROM:+0200
TZOFFSETTO:+0300
END:DAYLIGHT
END:VTIMEZONE

How can I do this?

Discussion

  • Allen Winter
    Allen Winter
    2014-10-24

    Anthony,

    would exporting the icaltimezone_expand_vtimezone() symbol for public use be of help to you. yes I know its been a long time since you reported.

    we are on github now, in http://github.com/libical/libical

    in the meantime, if you have solved this another way please let us know so we can close this bug. or if you have a solution in mind I'd be happy to hear about it.