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

Date utility "format" is broken #8906

Closed
Daemach opened this issue Apr 15, 2021 · 3 comments
Closed

Date utility "format" is broken #8906

Daemach opened this issue Apr 15, 2021 · 3 comments

Comments

@Daemach
Copy link

Daemach commented Apr 15, 2021

Date utility "format" is broken. It is decrementing the day value, somehow. Here's the example: https://www.screencast.com/t/ixqqNEPu

@pdanpdan
Copy link
Collaborator

#8469

duplicate of #8039

@Daemach
Copy link
Author

Daemach commented Apr 16, 2021

AA8D1B37-F16D-4F96-BFEC-8E5265FA631F

@pdanpdan
Copy link
Collaborator

pdanpdan commented Apr 16, 2021

Yes, you can do a PR to the docs if you have time.
That format (YYYY-MM-DD) is a valid one, just that it is parsed as a local timezone.

new Date('2021-04-01')
Thu Apr 01 2021 03:00:00 GMT+0300 (Eastern European Summer Time)

new Date('2021/04/01')
Thu Apr 01 2021 00:00:00 GMT+0300 (Eastern European Summer Time)

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

No branches or pull requests

2 participants