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
I'm aware there is a dayjs-plugin-utc plugin. All the same using utc() has no effect on the issue except that it makes week incorrectly get set to Sunday instead of Monday (looks like week is one day out either way). Does dayjs not intend to have any ISO stuff in the core? Thanks
Information
Day.js Version [e.g. v1.0.0] - 1.8.16
Time zone: GMT+0100 (British Summer Time)
The text was updated successfully, but these errors were encountered:
Describe the bug
Hi there seem to be two bugs relating to this feature:
isoWeek
Expected behavior
Here is the expected value in
moment
vs what we get indayjs
:https://codesandbox.io/s/dayjs-unexpected-startof-week-syph3
I'm aware there is a
dayjs-plugin-utc
plugin. All the same usingutc()
has no effect on the issue except that it makesweek
incorrectly get set to Sunday instead of Monday (looks likeweek
is one day out either way). Does dayjs not intend to have any ISO stuff in the core? ThanksInformation
The text was updated successfully, but these errors were encountered: