chronic
chronic copied to clipboard
Can't parse 3/8/2015 for some reason
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.
It's DST related, currently Chronic almost always breaks on DST change... There are dozens of similar bugs, it will be fixed some day.
Just came across this problem today too, in production. Took awhile to track down! Hopefully some day comes soon. :)