-
-
Notifications
You must be signed in to change notification settings - Fork 516
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
Daily times are wrong around DST when system is not UTC #233
Comments
This is because > new Date(2018, 10, 3, 4, 0, 0, 0)
2018-11-03T11:00:00.000Z
> new Date(2018, 10, 4, 4, 0, 0, 0)
2018-11-04T12:00:00.000Z The |
One possible solution would involve avoiding the |
The initial conversion comes in parsing the > const date = new Date('2018-11-01T11:00:00.000Z')
undefined
> date.getHours()
4 It would seem most logical that the internal representation of the desired time should be the requested time in UTC and not converted to local time (then back later). |
I have a fix for this, pending #228 |
Fixed by #235 . |
There are a number of much older issues around this (#65 , #157 , #213) and I was hoping it would be resolved with a fix for #38 et al., and a fix (without a test) was even merged in for it (#232), but it continues to be an issue.
Repro:
Result:
The resulting times for a daily repeating routine are off by 1 hour after "fall back". This only reproduces when the machine's time zone is one with DST, so it does not exist under UTC, for example.
The text was updated successfully, but these errors were encountered: