Closed MrMoins closed 3 years ago
Add :guess => :begin
option (or false
) otherwise it picks middle of it found span...
the problem here is the date returned in the third result.
it should be 2019-08-29 09:00:00 +0000
not 25
2.5.0 :041 > refdate
=> 2019-09-29 18:55:28 +0530
2.5.0 :027 > Chronic.parse('last week thuesday', now: refdate)
=> 2019-09-25 12:00:00 +0530
2.5.0 :040 > Chronic.parse('last week thuesday at 9am', now: refdate)
=> 2019-09-22 09:00:00 +0530
Is it because thursday
spelling was wrong?
It's working fine if I use right spelling.
2.5.0 :042 > Chronic.parse('last week thursday at 9am', now: refdate)
=> 2019-09-26 09:00:00 +0530```
I've found a strange behavior when I try to add a time in parser.