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

Detecting system timezone #13

Open
jan-hudec opened this issue Oct 8, 2017 · 1 comment
Open

Detecting system timezone #13

jan-hudec opened this issue Oct 8, 2017 · 1 comment

Comments

@jan-hudec
Copy link

Would detecting system timezone be appropriate addition to chrono-tz?

The chrono package has LocalTimezone, but that only knows current offset and not the daylight-saving rules, so it is not sufficient for many calculations. And detecting the exact timezone is not trivial. I have found a code for it in ICU (uprv_tzname and related functions) and intend to port it to Rust.

Should this be added to chrono-tz? I think it makes sense there.

@pitdicker
Copy link
Contributor

pitdicker commented Apr 5, 2024

The iana-time-zone crate offers this functionality. We could mention it in our documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants