mojombo / chronic

Chronic is a pure Ruby natural language date parser.
http://injekt.github.com/chronic
MIT License
3.24k stars 458 forks source link

Time in PM with leading zero is not parsed correctly #357

Open shashank-saxena opened 7 years ago

shashank-saxena commented 7 years ago

This parsed correctly

Chronic.parse("08 am")
> Tue, 09 May 2017 08:00:00 PDT -07:00

But this one doesn't

Chronic.parse("08 pm")
> nil

And without leading zero works correctly

Chronic.parse("1 pm")
>Tue, 09 May 2017 13:00:00 PDT -07:00
davispuh commented 7 years ago

It's fixed in my rewrite branch