I found a weird inconsistency or bug in Calendar.nextDate(after:matching:)
.
The result I'm getting changes depending on whether the DateComponents
value I pass in includes a nanosecond
component (even if the value is 0).
The only "weirdness" is that the startDate
value lies in the "repeating hour" between 2am and 3am during the daylight saving switch. This means there is an ambiguity for the result of nextDate(after:matching:)
.
But what does that have to do with the nanoseconds?
(For Apple folks: Radar 29612754.)