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

"7 days ago at 00:00" parses to "23:00" when crossing daylight savings time #288

Open
jackdesert opened this issue Nov 25, 2014 · 1 comment
Labels

Comments

@jackdesert
Copy link

Here is a code snippet that demonstrates:

require 'timecop'
Timecop.freeze '2014-03-10 12:30' # Daylight savings time 
Chronic.time_class = ActiveSupport::TimeZone.new(-8)
Chronic.parse("7 days ago at 00:00") #=> Mon, 03 Mar 2014 23:00:00 PST -08:00 # Not Daylight savings time

It seems like Tues, 04 Mar 2014 00:00:00 is the appropriate answer

@davispuh
Copy link
Collaborator

Yeah, it's a known bug. #222 and #147
Also it's not really fixed yet (but this case works correctly in my rewrite branch #278)

@davispuh davispuh added the bug label Nov 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants