Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Today is tomorrow #92

Open
tholum opened this issue Mar 19, 2019 · 1 comment
Open

Today is tomorrow #92

tholum opened this issue Mar 19, 2019 · 1 comment

Comments

@tholum
Copy link
Contributor

tholum commented Mar 19, 2019

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
Copy link

bennidi commented Aug 7, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants