Skip to content

1.3.2

Latest

Choose a tag to compare

@studio-rookery studio-rookery released this 31 Oct 14:19
f7de3f5

Fixes

  • Calendar.startDate(of: Day) no longer returns a moment one date too late in zones that skipped a calendar date, such as Pacific/Apia and Pacific/Fakaofo after 2011-12-30. A skipped date now starts when the next date does, so dateRange(in:) is empty for it.
  • Calendar.startDate(of: Day) now returns the first moment of the day when DST ends at local midnight, or when a zone's offset has changed since the reference date. It could previously be one hour late.

Performance

  • Calendar.startDate(of: Day) takes about 0.4 µs per call, down from about 1 µs in Asia/Tokyo.

Stored Day values remain valid.

Full Changelog: 1.3.1...1.3.2