-
Notifications
You must be signed in to change notification settings - Fork 57
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
Bump to 0.9.1 with 2024b #185
Conversation
I'll have a look later today. |
If you want to stop reviewing, that's also fine, just let me know! |
I am doing way less than I feel like I should for chrono. Feel free to ask/cc me anytime! |
With this release the TZDB starts to use It seems to me the cleanest solution is to make the time zone name optional with the |
Before: Tz::Africa__Asmara => {
const REST: &[(i64, FixedTimespan)] = &[
(-1946168836, FixedTimespan { utc_offset: 9000, dst_offset: 0, name: "+0230" }),
(-1309746600, FixedTimespan { utc_offset: 10800, dst_offset: 0, name: "EAT" }),
(-1261969200, FixedTimespan { utc_offset: 9000, dst_offset: 0, name: "+0230" }),
(-1041388200, FixedTimespan { utc_offset: 9900, dst_offset: 0, name: "+0245" }),
(-865305900, FixedTimespan { utc_offset: 10800, dst_offset: 0, name: "EAT" }),
];
FixedTimespanSet {
first: FixedTimespan {
utc_offset: 8836,
dst_offset: 0,
name: "LMT",
},
rest: REST
}
}, After: Tz::Africa__Asmara => {
const REST: &[(i64, FixedTimespan)] = &[
(-1946168836, FixedTimespan { utc_offset: 9000, dst_offset: 0, name: "%z" }),
(-1309746600, FixedTimespan { utc_offset: 10800, dst_offset: 0, name: "EAT" }),
(-1261969200, FixedTimespan { utc_offset: 9000, dst_offset: 0, name: "%z" }),
(-1041388200, FixedTimespan { utc_offset: 9900, dst_offset: 0, name: "%z" }),
(-865305900, FixedTimespan { utc_offset: 10800, dst_offset: 0, name: "EAT" }),
];
FixedTimespanSet {
first: FixedTimespan {
utc_offset: 8836,
dst_offset: 0,
name: "LMT",
},
rest: REST
}
}, |
Sounds good! Do you have time to work on this? It seems a little tricky, if I understand correctly we have to do work in chrono to make stuff in chrono-tz work correctly? But chrono-tz takes a dependency on chrono so I guess we'll need to bump chrono-tz to 0.10.0 and then also have it depend on newest chrono? |
Yes, it doesn't seems to involved (hopefully). |
LGTM, thanks! Do you want to formally approve, since I can't? |
For the formatting code it ended up to be easier to just format the integers instead of trying to make use of the offset formatting code in chrono. The change to the With 2024b the TZDB does switches to the |
You are quick with the review! |
I'd like to push one more change. the example file should use |
Shall I merge and make the release? |
Yes, please! |
Published 🎉. |
No description provided.