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
Dayjs subtract does not support week based dayjs durations => expected?
x=dayjs()
x.toISOString()
'2024-02-16T12:14:02.958Z'
x.subtract(1,'weeks').toISOString()
'2024-02-09T12:14:02.958Z' // expected
x.subtract(dayjs.duration('P2W')).toISOString()
'2024-02-16T12:14:02.958Z' // !!! NO IMPACT => IS THIS NOT SUPPORTED?
x.subtract(dayjs.duration('P3M')).toISOString()
'2023-11-16T12:14:02.958Z' // expected
Information
Day.js Version dayjs@npm:1.11.10
OS: [e.g. iOS]
Browser [e.g. chrome 62]
Time zone: [e.g. GMT-07:00 DST (Pacific Daylight Time)]
The text was updated successfully, but these errors were encountered:
Describe the bug
Dayjs subtract does not support week based dayjs durations => expected?
x=dayjs()
x.toISOString()
x.subtract(1,'weeks').toISOString()
Information
The text was updated successfully, but these errors were encountered: