Interval#splitAt is incorrectly sorting the input DateTimes by ISO strings (Array.sort implicitly calls toString), which leads to invalid intervals when trying to split at DST shifted hours.
This PR changes the sorting to use the underlying epoch milliseconds instead.
Interval#splitAt
is incorrectly sorting the inputDateTime
s by ISO strings (Array.sort
implicitly callstoString
), which leads to invalid intervals when trying to split at DST shifted hours. This PR changes the sorting to use the underlying epoch milliseconds instead.