dayjs
dayjs copied to clipboard
chain call functions dayjs、tz、hour、minute return incorrectly
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