-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for deprecated timezones #4
Comments
Oh my, that is behind; I see that I'm curious: where are you getting the old zone names from at run-time? And are you wanting to be able to look up zones in the For your current fix, how many old zone names are you mapping? Does the I hope you don't mind all the questions; I'm very curious about your use case. Thanks! Justin |
Yeah super behind. Currently I am getting these zones from an EMR at a hospital.
The backward file looks like it has everything that would be needed. |
Interesting, thanks! I'm thinking that this package could add another dict, perhaps called What are your thoughts? |
I think that is a great solution! |
Right on! I'll leave this open until I can implement such a change. Thanks again for helping me understand your use case. |
Will this handle "aliased" names as well? I just ran into this with the "UTC" zone name on Google Calendar's API. Looks like there are a lot of aliases here. https://en.wikipedia.org/wiki/List_of_tz_database_time_zones |
Hi Coury, This package already includes current aliases (e.g. It looks like That's interesting you received Thanks, Justin |
Hopefully this answers your questions. Google Calendar API - Event: |
The docs say In your example case |
Yeah, it's no problem to append TimeZone.zones with whatever zones I might need tbh.
I really only make use of the timezone in a GCal.Event for generating recurring events, as the offset won't take into account DST changes. |
Just ran into this exact same issue. Apparently Microsoft & Google use the same shape for #4 (comment) Thanks for this! |
Thanks @erlandsona. This library does support links, but the link from Kiev to Kyiv is in the backward compatibility section of the tz database. This library doesn't currently include any of the deprecated zone names, which is indeed what this issue is about. |
For now, I've made a fork accounting for Europe/Kiev and Europe/Zaporozhye. Might add more as I encounter. Package: https://package.elm-lang.org/packages/k-bx/timezone-data/1.0.0/ |
It allows to properly change TimeZone in UI when the browser returns linked (non-canonical) zone. Map's elm source code has been generated using ruby and time zones data availiable from `tzinfo-data` gem. issue: #1753 see also: justinmimbs/timezone-data#4 Co-authored-by: Piotr Jurewicz [email protected]
I was wondering if you were open to adding support for deprecated timezone such as "US/Arizona", "US/***". My reasoning behind this is that T work in the healthcare industry and a lot of hospitals are well behind the times in technology and still use the deprecated timezones. I would also assume that when interfacing with an older server would result in the same sort of incompatibility.
Currently my fix is to just map the old timezone to the new time zone. But it would be better if this package just handled all timezones.
The text was updated successfully, but these errors were encountered: