chronic icon indicating copy to clipboard operation
chronic copied to clipboard

'next n days', 'previous n days', where n is a number yields unexpected results

Open DanielViglione opened this issue 10 years ago • 1 comments
trafficstars

Today is February 6. The next 7 days will be February 13. But according to Chronic:

2.1.2 :017 > Date.today => #<Date: 2015-02-06 ((2457060j,0s,0n),+0s,2299161j)> 2.1.2 :018 > Chronic.parse('next 7 days') => 2015-02-07 07:00:00 -0500

As you can see, it yields the wrong date.

DanielViglione avatar Feb 06 '15 23:02 DanielViglione

I'm not sure such format have ever been supported...

davispuh avatar Feb 07 '15 17:02 davispuh