Skip to content

Instantly share code, notes, and snippets.

@zbowling
Created November 14, 2011 01:27
Show Gist options
  • Save zbowling/1363032 to your computer and use it in GitHub Desktop.
Save zbowling/1363032 to your computer and use it in GitHub Desktop.
diff -r 2bb1725914b1 ISO8601DateFormatter.m
--- a/ISO8601DateFormatter.m Sat Oct 15 16:40:07 2011 -0700
+++ b/ISO8601DateFormatter.m Sun Nov 13 17:26:40 2011 -0800
@@ -557,7 +557,7 @@
NSNumber *offsetNum = [NSNumber numberWithDouble:timeZoneOffset];
timeZone = [timeZonesByOffset objectForKey:offsetNum];
if (!timeZone) {
- timeZone = [NSTimeZone timeZoneForSecondsFromGMT:timeZoneOffset];
+ timeZone = [NSTimeZone timeZoneForSecondsFromGMT:(NSInteger)timeZoneOffset];
if (timeZone)
[timeZonesByOffset setObject:timeZone forKey:offsetNum];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment