mojombo / chronic

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

'the 1st of next month' not parsed correctly #247

Open pmwheatley opened 10 years ago

pmwheatley commented 10 years ago

Chronic.parse('the 1st of next month') returns the first of this month. Chronic.parse('the 1st day of next month') returns the correct date.

irb(main):007:0> Chronic.parse('the 1st of next month') 2014-03-01 12:00:00 +0100 irb(main):008:0> Chronic.parse('the 1st day of next month') 2014-04-01 12:00:00 +0200