biweekly icon indicating copy to clipboard operation
biweekly copied to clipboard

Timezone for outlook compatible Europe cities is not working.

Open ykushch opened this issue 7 years ago • 5 comments

If you'll navigate to the tzurl then you won't find cities that was before. Maybe we need some fallback solution here.

ykushch avatar Oct 31 '17 16:10 ykushch

Yes, this issue was discussed in https://github.com/mangstadt/biweekly/issues/76

My only suggestion is to try to use the "non-Outlook" versions of the files and see if they work.

mangstadt avatar Nov 01 '17 02:11 mangstadt

Okay, I see. I requested to fix tzurl. And they've managed to update the site. Anyway, I think that we need some kind of fallback mechanism here for such cases as this site could not be the single source of truth 🙂

ykushch avatar Nov 01 '17 09:11 ykushch

Nice, thanks for contacting them! 👍

One alternative would be to bundle the timezone definitions with biweekly. Getting them all downloaded would be tedious though.

Note that the website is only used when you are writing an iCal file and want to format your timestamps in a timezone other than UTC. It's possible to provide your own VTIMEZONE definition from a source of your own choosing. So, you could download the ones you need from tzurl.org and then use the downloaded files to generate iCals. I don't think it's possible to generate VTIMEZONE components on the fly from a pure Java TimeZone object.

You could also choose to use global IDs instead of VTIMEZONE components, but my impression is that they are not as widely supported.

mangstadt avatar Nov 02 '17 01:11 mangstadt

I am thinking of bundling of this stuff. I will do a pr for this functionality. Basically, if we cannot download firstly, then we should warn that URL is not working/not reachable and then fallback to our bundled files. WDYT?

ykushch avatar Nov 02 '17 07:11 ykushch

Sounds good. I think I would like to provide a separate method which retrieves the timezone definition from the bundled files. So, users can still call the download method if they want to download them.

mangstadt avatar Nov 06 '17 02:11 mangstadt