matthewmueller / date

Date() for humans
http://matthewmueller.github.io/date/
1.48k stars 88 forks source link

Today is tomorrow #92

Open tholum opened 5 years ago

tholum commented 5 years ago

Today at 1am, comes up as tomorrow at one, for example it is 3/19 right now, but if I do "today at 1am" it gives me 3/20 1am,

I am in cst, and tested it when my timezone is the same day as utc, so it does not seem to be a timezone issue

describe("today issue", function() { it("test today", () => { const date = parse("today at 1am"); console.log(d(date), d(new Date())); assert(d(date) == d(new Date())); }); });

the console.log is 3/20/19 3/19/19

bennidi commented 4 years ago

I am seeing something similar. today at 12:00 comes out as today but today at 11:00 comes out as tomorrow. This is really unfortunate. Can we expect a fix for this?