NSDateFormatter and Time Zone issue?

If the date string is in GMT you can’t use your system Timezone to create the NSDate from the NSString.

replace the first occurrence of [dateFormat setTimeZone:[NSTimeZone systemTimeZone]];

with [dateFormat setTimeZone:[NSTimeZone timeZoneWithName:@"GMT"]];

Leave a Comment