1st april dates of 80s failed to parse in iOS 10.0
问题 I found that DateFormatter date(from:) method can't parse a couple of specific dates. Method returns nil for the 1st april of 1981-1984 years. Is it a bug of Foundation? What can we do to perform parsing of such dates? Xcode 8.0, iOS SDK 10.0. Here is a screenshot of a short playground example: 回答1: This problem occurs if daylight saving time starts exactly on midnight , as it was the case in Moscow in the years 1981–1984 (see for example Clock Changes in Moscow, Russia (Moskva)). This was