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
This was already fixed by #1524, the fix will be in the next version of Luxon.
Until then you can work around this bug by converting all split-points to UTC:
constinterval=Interval.fromISO('2023-10-29T01:00:00.000+02:00/2023-10-29T04:00:00.000+01:00');constcutpoints=interval.splitBy({hour: 1}).map((i)=>i.start.toUTC());// <== Converting to UTC hereconstcuts=interval.splitAt(...cutpoints);
Describe the bug
Interval splitAt produces an invalid interval during DST change
To Reproduce
https://stackblitz.com/edit/luxon-demos-tpff1z?file=index.ts
Actual vs Expected behavior
Interval splitAt should produce valid intervals during DST change
The text was updated successfully, but these errors were encountered: