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
constoriginalDT=parseISO("2023-03-10T00:00:00Z");// adding 0 iso week years -- prints -68400000console.log(addISOWeekYears(originalDT,0)-originalDT);// substracting 0 iso week years -- prints -68400000console.log(subISOWeekYears(originalDT,0)-originalDT);
as far as I can see, the source of this problem is that:
subISOWeekYears uses addISOWeekYearsinternally, so they both exhibit the same issue
repro:
as far as I can see, the source of this problem is that:
subISOWeekYears
usesaddISOWeekYears
internally, so they both exhibit the same issueaddISOWeekYears
usessetISOWeekYear
internallysetISOWeekYear
usesstartOfISOWeekYear
internallystartOfISOWeekYear
usesstartOfISOWeek
internallystartOfISOWeek
usesstartOfWeek
internallystartOfWeek
calls.setHours(0, 0, 0, 0)
internally to set the date of the object that's returned through the chain described aboveThanks!
The text was updated successfully, but these errors were encountered: