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

chain call functions dayjs、tz、hour、minute return incorrectly #2628

Open
CoCoManYY opened this issue Apr 10, 2024 · 0 comments
Open

chain call functions dayjs、tz、hour、minute return incorrectly #2628

CoCoManYY opened this issue Apr 10, 2024 · 0 comments

Comments

@CoCoManYY
Copy link

Describe the bug

const d1 = dayjs('2024-04-09T22:30:50Z').tz("UTC").hour(10).minute(10).format()   // '2024-04-09T10:10:50Z'
const value1 = dayjs('2024-04-09T22:30:50Z').tz("UTC").hour(10).minute(10).valueOf() // 1712686250000
const d2 = dayjs(1712686250000).tz("UTC").format() // '2024-04-09T18:10:50Z'

Expected behavior
excepte d1 === d2

Information

  • Day.js Version 1.11.10
  • OS: MacOs
  • Browser : chrome 版本 123.0.6312.107(正式版本) (arm64)
  • Time zone: Asia/Shanghai
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