-
Notifications
You must be signed in to change notification settings - Fork 158
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
Disambiguation behaviour when converting DateTime skipped by DST transition #317
Comments
I don't have a strong opinion one way or the other, but I can think of the following reasons that mildly support keeping it the way it is:
|
Can you demonstrate what you mean? I don't see any way to get anything other than a post-transition value for skipped times of day.
|
Oh, you're right, actually; scratch that reason. |
That's not a great approach to take. It would be inconsistent with other languages/libraries that handle disambiguation, and would be a very unintuitive result. Imagine a task scheduled hourly in
If I saw that result in my application, I'd assume there was a bug somewhere. |
Follow up from #316.
Currently in the polyfill, disambiguating a wall-clock time that is skipped when setting the clock an hour forward for DST will give a time that's either 1 hour earlier or 1 hour later.
@gibson042 >
The text was updated successfully, but these errors were encountered: