Re: [swift-users] DateFormatter bug

2017-05-16 Thread Quinn "The Eskimo!" via swift-users
On 16 May 2017, at 00:53, Ronaldo Faria Lima via swift-users wrote: > There is another important fact: 15 of October is when day light savings is > effective in Brazil. Which means there’s no midnight on that day, right? Last time I encountered this it was caused by

[swift-users] DateFormatter bug

2017-05-15 Thread Ronaldo Faria Lima via swift-users
Hi, all. During a discussion in CocoaHeads Brazil, one developer came with a very odd situation involving Foundation’s DateFormatter class. Here is the code: import Foundation let fmt = DateFormatter() fmt.dateFormat = "-MM-dd" let aDate = fmt.date(from: "2017-10-15”) The variable aDate