chronic icon indicating copy to clipboard operation
chronic copied to clipboard

Chronic can't parse year "00": returns nil

Open mreigen opened this issue 6 years ago • 3 comments
trafficstars

>> Chronic.parse("June 15 00 at 5:45 AM")
=> nil
>> Chronic.parse("June 15 06 at 5:45 AM")
=> 2006-06-15 05:45:00 -0700
>> Chronic.parse("June 15 2000 at 5:45 AM")
=> 2000-06-15 05:45:00 -0700

This seems to be fixed with a commit from @renziver (https://github.com/mojombo/chronic/commit/86db388a71bc8f5c9e8b861d75e23df4abac26b6) But it doesn't seem to be released. The latest release is 0.10.2 as of the time of this writing.

mreigen avatar Feb 04 '19 18:02 mreigen

@mojombo would it be possible to get a new version of this gem published to rubygems? A lot of pertinent fixes have been pushed to master since the last release.

delongtj avatar Aug 15 '19 15:08 delongtj

bump on release :)

joevandyk avatar Oct 19 '21 17:10 joevandyk