Re: NSDateFormatter, timezones and early dates

2012-01-31 Thread Shane Stanley
On 01/02/2012, at 3:26 PM, Gideon King wrote: > It works fine for dates after 1895, but for dates before that, the string is > incorrect - around here it should end in +1000, but for dates before 1895, it > gives +101208. +1000 sounds like AU. Australia changed to standard time on February 1, 1

NSDateFormatter, timezones and early dates

2012-01-31 Thread Gideon King
I have just come across a really unexpected thing. I have a date formatter like so: NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease]; [formatter setDateFormat:@"-MM-dd'T'HH:mm:ss.SSSZ"]; Now when I use: [formatter stringFromDate:aDate]; It works fine fo