Weird Brazil Date Bug with Jon Skeet

Digging through my archives once again and found this wonderful video with Jon Skeet doing what he loves to do: sleuthing date bugs and answering questions on StackOverflow!

Date

Back in 2011 or so I recorded a series of videos with Jon Skeet, dissecting answers to his StackOverflow questions that he found interesting.

Jon starts things off by sleuthing out a rather hairy Date/Timezone bug which, evidently, only happens in Brazil. To make matters even more interesting, the code is written in Objective-C on iOS6!

Jon is not an iOS developer yet he still managed to get credit for this answer! I love how he digs into a passion of his: dates.

Here’s the original question:

Why does NSDateFormatter return nil date for these 4 time zones?Try running this in iOS6 (haven’t tested pre iOS6): NSDateFormatter *julianDayDateFormatter = nil;julianDayDateFormatter = [[NSDateFormatter alloc] init];[julianDayDateFormatter setDateFormat:@”…Stack Overflowlpa