chronic icon indicating copy to clipboard operation
chronic copied to clipboard

Can't parse 3/8/2015 for some reason

Open ajselvig opened this issue 10 years ago • 2 comments

This one is really weird:

> require 'chronic'
=> true
> Chronic.parse "3/8/2015 12:00:00 AM"
=> nil
> Chronic.parse "3/7/2015 12:00:00 AM"
=> 2015-03-07 00:00:00 -0600
> Chronic.parse "3/9/2015 12:00:00 AM"
=> 2015-03-09 00:00:00 -0500

Any ideas? I'm using chronic 0.10.2.

ajselvig avatar Apr 10 '15 00:04 ajselvig

It's DST related, currently Chronic almost always breaks on DST change... There are dozens of similar bugs, it will be fixed some day.

davispuh avatar Apr 10 '15 14:04 davispuh

Just came across this problem today too, in production. Took awhile to track down! Hopefully some day comes soon. :)

gayle avatar Jul 30 '15 16:07 gayle