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

'1st this month' gives 01-03-2017 but today is 28-02-2017 #355

Open PabloCastellano opened 7 years ago

PabloCastellano commented 7 years ago
2.2.1 :001 > require 'date'
 => true 
2.2.1 :002 > require 'chronic'
 => true 
2.2.1 :004 > Date.today
 => #<Date: 2017-02-28 ((2457813j,0s,0n),+0s,2299161j)> 
2.2.1 :005 > Chronic.parse('1st this month')
 => 2017-03-01 12:00:00 +0100 
davispuh commented 7 years ago

It's fixed in my rewrite branch