Created
November 14, 2011 01:27
-
-
Save zbowling/1363032 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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