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

next DST change date #708

Open
simodelle opened this issue Dec 19, 2018 · 2 comments
Open

next DST change date #708

simodelle opened this issue Dec 19, 2018 · 2 comments

Comments

@simodelle
Copy link

Is it possible to receive the next date when dst of a specific zone will change?

@wschmrdr
Copy link

wschmrdr commented Dec 5, 2019

I know that this is a bit old, but I, for one, would find this helpful as well. For the time being, we'd probably have to search through moment.tz.zone(zonename).untils to get the first number after the current timestamp in milliseconds, return the index, and then get that and the index before to decide which way it will go.

@ichernev
Copy link
Contributor

That sounds reasonable, maybe a method in the zone object, like nextOffsetChange(timestamp).

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

3 participants