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

It's unclear how to deal with the timezones. #463

Closed
dnrusakov opened this issue Apr 25, 2022 · 1 comment
Closed

It's unclear how to deal with the timezones. #463

dnrusakov opened this issue Apr 25, 2022 · 1 comment
Labels
A-local-offset Area: local offset C-duplicate Category: exact duplicate

Comments

@dnrusakov
Copy link

Let's say I have some datetime represented in Utc. Now, I want to know what time it corresponds to in New York time zone. I could achieve that by adding offset!(-5) to my Utc. However, the problem is that offset is not constant due to daylight savings. I went through the documentation, but I haven't found what is the right way to solve this problem using this this library. Could you please share a small code example demonstrating how to deal with that?
cc @jhpratt

@jhpratt
Copy link
Member

jhpratt commented Apr 25, 2022

This is tracked in #193. There is no progress on my end.

@jhpratt jhpratt closed this as completed Apr 25, 2022
@jhpratt jhpratt added A-local-offset Area: local offset C-duplicate Category: exact duplicate labels Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-local-offset Area: local offset C-duplicate Category: exact duplicate
Projects
None yet
Development

No branches or pull requests

2 participants