Commits

Peter Hosey committed 900c739

This should be an NSInteger, not an NSTimeInterval. Thanks to Rudy Richter for bringing this to my attention.

  • Participants
  • Parent commits dac5042

Comments (0)

Files changed (1)

File ISO8601DateFormatter.m

 								if (negative) tz_minute = -tz_minute;
 							}
 
-							NSTimeInterval timeZoneOffset = (tz_hour * 3600) + (tz_minute * 60);
-							NSNumber *offsetNum = [NSNumber numberWithDouble:timeZoneOffset];
+							NSInteger timeZoneOffset = (tz_hour * 3600) + (tz_minute * 60);
+							NSNumber *offsetNum = [NSNumber numberWithInteger:timeZoneOffset];
 							timeZone = [timeZonesByOffset objectForKey:offsetNum];
 							if (!timeZone) {
 								timeZone = [NSTimeZone timeZoneForSecondsFromGMT:timeZoneOffset];