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

valueOf offset calculate not correctly, when crossing summertime #1820

Open
huoyuxin opened this issue Mar 3, 2022 · 1 comment
Open

valueOf offset calculate not correctly, when crossing summertime #1820

huoyuxin opened this issue Mar 3, 2022 · 1 comment

Comments

@huoyuxin
Copy link

huoyuxin commented Mar 3, 2022

Describe the bug
valueOf offset calculate not correctly, when crossing summertime, it subtract one more hour

Expected behavior
valueOf should be correct

Information

  • Day.js Version v1.10.8
  • system timezone Europe/Warsaw
  • system date 2022-03-01
  • dayjs.tz.setDefault('Europe/Warsaw')
  • dayjs.tz().endOf('month').valueOf() -> 1648760399999, it should be 1648763999999
@huoyuxin
Copy link
Author

huoyuxin commented Mar 3, 2022

@iamkun
and there is the PR for this issue:

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

1 participant