You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
isoWeek() should return a number between 1 and 53 but it seems to have problems in utc mode.
importdayjsfrom'dayjs'importisoWeekfrom'dayjs/plugin/isoWeek.js'importutcfrom'dayjs/plugin/utc.js'dayjs.extend(isoWeek)dayjs.extend(utc)// 1577836800000 is timestamp for Wednesday, 1 January 2020 00:00:00 UTCconsole.log(dayjs(1577836800000).isoWeek())// -> 1console.log(dayjs.utc(1577836800000).isoWeek())// -> 3600001
Expected behavior
I would expect 1 in that case.
Information
Day.js Version 1.8.32
OS: OSX Mojave
Nodejs 12.16.1
Time zone: UTC + 2
The text was updated successfully, but these errors were encountered:
Describe the bug
isoWeek() should return a number between 1 and 53 but it seems to have problems in utc mode.
Expected behavior
I would expect
1
in that case.Information
The text was updated successfully, but these errors were encountered: