Skip to content
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

chrono::DurationRound is not TZ aware #495

Closed
SimGer opened this issue Oct 28, 2020 · 0 comments · Fixed by #508
Closed

chrono::DurationRound is not TZ aware #495

SimGer opened this issue Oct 28, 2020 · 0 comments · Fixed by #508
Labels

Comments

@SimGer
Copy link

SimGer commented Oct 28, 2020

The functions implemented in the chrono::DurationRound trait return wrong values when a time zone is involved.
The TZ offset "leaks" into the time value.

Example on Rust Playground.

If this is expected it should be documented, I think.

robyoung added a commit to robyoung/chrono that referenced this issue Nov 30, 2020
pickfire pushed a commit to pickfire/chrono that referenced this issue Jan 22, 2022
botahamec pushed a commit to botahamec/chrono that referenced this issue May 26, 2022
pickfire pushed a commit to pickfire/chrono that referenced this issue Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants