-
Notifications
You must be signed in to change notification settings - Fork 18
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
Support more timezone formats #24
Comments
Supporting any In particular I'm working on parsing |
I've been thinking about this a bit more, and one approach would be to make
Any thoughts on this? |
Gentle ping |
Hi @WhyNotHugo , really sorry about the delayed responses (had very little time lately) and thanks for the ping. That sounds like a valid approach which should make the library more flexible and support more use-cases. One important aspect for me is that most shouldn't have to worry about implementing a time zone trait to use the library. I don't quite understand what you mean by feature flagging. My initial thought was that the generic could just default to |
Exactly how is IANA formatted timezones defined in the context on this crate and issue? The thing which brought me, and the core reason for phrasing the question, is that my code broke when tz-rs started to resolve Europe/Copenhagen as CEST rather than CET due to the transition into the daylight savings period. All I really wish to do is the simple use case of constructing and resolving a rrule for the current timezone. It seems the file https://data.iana.org/time-zones/releases/tzdb-2024a.tar.lz references CEST. I lack real understanding (merely ran |
@nospam2624 Icalendar files encode Icalendar itself does not use IANA formatted timezones; all timezone data is included inside the icalendar component. It's hard to give a more useful answer without knowing what you're trying to and what problem you're facing. I don't think this falls within this issue though; I'd suggest opening a new one explaining the problem thoroughly. |
This is mostly in preparation for fmeringdal#24 A lot of these functions will continue taking a `DateTime<Tz>` as parameter, but other will allow a generic `Timezone` as parameter.
It would be nice to support more timezone formats like:
chrono_tz::Etc::GMTMinus10
orchrono::FixedOffset
can be used for this)The only supported format atm is IANA formatted timezones.
The text was updated successfully, but these errors were encountered: