TZID Timezone weirdness….

I found the following in an ics file that some of my plugin users were trying to use my plugin with:

DTSTART;VALUE=DATE;TZID=/mozilla.org/20070129_1/Europe/Berlin:20061223
DTEND;VALUE=DATE;TZID=/mozilla.org/20070129_1/Europe/Berlin:20070113

Ical Specs are not terribly helpful:

http://www.kanzaki.com/docs/ical/tzid.html and http://www.ietf.org/rfc/rfc2445.txt say:

The specification of globally unique time zone identifiers is not addressed by this document and is left for future study.

and phpicalendar has this to say about these sorts of timezone definitions:

phpicalendar’s time zone specs are defined in functions/timezones.php, which is based on the Olson database…..the path should be NOT part of the TZID

It seems that some ical generators do put a path in, so it looks like one has to try to strip it out to get down to a simple timezone.   The path probably should be in the TZURL part of the TIMEZONE spec that can exist at the beginning of the file.  See

http://www.kanzaki.com/docs/ical/vtimezone.html

Anyway code is in progress to deal with it – looking good so far – it was a pain because the syntax meant that the timezone had to be parsed in a different spot from the other timezone specifications.

Share or Save:
  • RSS
  • del.icio.us
  • Twitter
  • Digg
  • Slashdot
  • Technorati
  • Google Bookmarks
  • StumbleUpon
  • Facebook

Related posts:

  1. iCal file Timezones
  2. TZID’s with quotes around them
  3. Ical – aspects implemented & not
  4. ArtistData Ical – floating
  5. Version 2.6.3 for timezone fix

This entry was posted in Ical RFC5545 / 2445, Notes, Testing and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>