For example, "PRC" is not a IANA timezone (yet supported as a valid timezone in Linux). TzUrlDotOrgGenerator lookup via http://tzurl.org/zoneinfo-outlook/PRC will return "Asia/Shanghai" instead. As a consequence, VCALENDAR will have references to non-existent TZID=PRC, and corrent (but unused) VTIMEZONE element "Asia/Shanghai":
Some calendar clients can find "an approximate replacement" (Outlook), some may warn about "unknown timezone error" (Thunderbird), and use wrong offset.
My workaround: compare original tz.ID with the value retrieved from tzurl.org in generate(). If they differ, then use the new timezone:
Thank you for pointing this out. If the value of a property's TZID parameter is different than the value of the timezone's TZID property, then that's a big problem. I will look into this.
Hi Mike,
A suggestion to improve robustness of timezone handling, based on your wiki http://sourceforge.net/p/biweekly/wiki/Working%20with%20Timezones/.
For example, "PRC" is not a IANA timezone (yet supported as a valid timezone in Linux). TzUrlDotOrgGenerator lookup via http://tzurl.org/zoneinfo-outlook/PRC will return "Asia/Shanghai" instead. As a consequence, VCALENDAR will have references to non-existent TZID=PRC, and corrent (but unused) VTIMEZONE element "Asia/Shanghai":
Some calendar clients can find "an approximate replacement" (Outlook), some may warn about "unknown timezone error" (Thunderbird), and use wrong offset.
My workaround: compare original tz.ID with the value retrieved from tzurl.org in generate(). If they differ, then use the new timezone:
I guess it could be useful to mention this problem in the wiki. Even better, incorporate an automatic fix to the library?
Thanks
Peter
Peter,
Thank you for pointing this out. If the value of a property's TZID parameter is different than the value of the timezone's TZID property, then that's a big problem. I will look into this.
I created a ticket for this: https://sourceforge.net/p/biweekly/tickets/11/
Last edit: Michael Angstadt 2015-08-28
Hi Peter,
It should be fixed now. Thanks again for pointing that out.