Skip to content

test: do not assume system timezone is UTC - #713

Closed
justingrant wants to merge 1 commit into
immerjs:masterfrom
justingrant:fix-date-test-timezone
Closed

test: do not assume system timezone is UTC#713
justingrant wants to merge 1 commit into
immerjs:masterfrom
justingrant:fix-date-test-timezone

Conversation

@justingrant

Copy link
Copy Markdown
Contributor

Fixes #712 by initializing all Date instances with UTC values, not local-timezone values.

Fixes immerjs#712 by initializing all Date instances with UTC values,
not local-timezone values.
@codesandbox-ci

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ebc0ebb:

Sandbox Source
Immer sandbox Configuration

@Gelio

Gelio commented Nov 29, 2020

Copy link
Copy Markdown
Contributor

Looks like duplicate effort with #705

@justingrant

Copy link
Copy Markdown
Contributor Author

@Gelio - Yep you're right. My apologies for not checking for duplicates. Closing this PR in favor of #705.

@Gelio

Gelio commented Nov 29, 2020

Copy link
Copy Markdown
Contributor

Not a problem 🙂 Thanks for showing a different solution to the same problem

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

Successfully merging this pull request may close these issues.

Tests fail when run in non-UTC time zone

2 participants