Open cruznunez opened 7 years ago
Got some unexpected results when I tried to use the first day of the month with 1st, 2nd, 3rd, 4th, or 5th.
today = Date.new(2017, 1, 1) Chronic.parse "1st Sunday this month", now: today => Sun, 08 Jan 2017 12:00:00 EST -05:00 Chronic.parse "2nd Sunday of this month", now: today => Sun, 15 Jan 2017 12:00:00 EST -05:00 Chronic.parse "1st Sunday in January", now: today => Sun, 01 Jan 2017 12:00:00 EST -05:00 Chronic.parse "2nd Sunday in January", now: today => Sun, 08 Jan 2017 12:00:00 EST -05:00 Chronic.parse("1st Sunday in January", now: today) == Chronic.parse("1st Sunday this month", now: today) => false
Anyone else getting this?
Looks like same issue as #295
It's fixed in my rewrite branch which isn't ready yet.
rewrite
Got some unexpected results when I tried to use the first day of the month with 1st, 2nd, 3rd, 4th, or 5th.
Anyone else getting this?