-
Notifications
You must be signed in to change notification settings - Fork 458
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
Possible daylight savings time issue for March 10 in AST (Rails) #179
Comments
+1 I have the same issue. 1.9.3p362 :021 > Time.current Interestingly, specifying "April 1st" works fine whereas "20 days from now" doesn't work. Chronic 0.9.1 |
+1 same issue here. EST Time zone. |
FWIW still not fixed, but for me it only seems to happen on noon the day of the switch:
Anyone found a workaround, or a fork that works, or an alternate library? |
Can reproduce for March 10th, 2019 during the noon-1300 hour just as @kueda mentioned:
At this line:
The addition of 12 hours to midnight (43200 seconds) doesn't account for the 1 hour gained because of the DST switch. Should really be adding "11" hours, not "12" on this day. |
PR with fix: #391 |
When trying to parse "March 10th at 12:30pm" in Atlantic Time it's returning March 11th at 12:30am.
Everything on March 10th, from 12pm to 12:59pm is moving ahead to March 11th from 12am to 12:59am.
Rails 3.2.12
Chronic 0.9.0 and 0.9.1
The text was updated successfully, but these errors were encountered: