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

Tests fail when run from Paris timezone. #22

Open
paganaye opened this issue Jun 30, 2021 · 0 comments
Open

Tests fail when run from Paris timezone. #22

paganaye opened this issue Jun 30, 2021 · 0 comments

Comments

@paganaye
Copy link

@paganaye paganaye commented Jun 30, 2021

Test
expect(o[2][1].toISOString()).toBe(new Date('2020-03-07').toISOString());

fails in the French timezone.

> new Date('2020-03-07').toISOString()
'2020-03-07T00:00:00.000Z'
> o[2][1].toISOString()
'2020-03-06T23:00:00.000Z'

For info:

> new Date('2020-03-07T00:00:00').toISOString()
'2020-03-06T23:00:00.000Z'

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

Successfully merging a pull request may close this issue.

None yet
1 participant