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

Format() is not inverse of parse() in Chrome, but it is in Safari/Firefox #795

Closed
OCJvanDijk opened this issue Jun 22, 2018 · 3 comments
Closed

Comments

@OCJvanDijk
Copy link

The following evaluates to false in Chrome, but to true in Firefox/Safari:

format(parse('02-04-1900', 'dd-MM-yyyy', new Date(1529674632607)), 'dd-MM-yyyy') === '02-04-1900'
@OCJvanDijk
Copy link
Author

Tested with date-fns@2.0.0-alpha.10

@OCJvanDijk
Copy link
Author

Took me quite a while to narrow down the problem to the timezoneOffset, and then I found it was already fixed by #789 before I even posted the issue xD

@leshakoss
Copy link
Contributor

This should be fixed v2.0.0-alpha.11. Please feel free to reopen the issue if the bug returns

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