Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reinstate fixes that were reverted with the last change.

  • Loading branch information...
commit 65e8a82409150c2105610e3f2d7f10c05469b9d1 1 parent c42e1a6
@mbaltaks authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 ISO8601DateFormatter.m
View
4 ISO8601DateFormatter.m
@@ -671,7 +671,7 @@ - (NSString *) stringFromDate:(NSDate *)date timeZone:(NSTimeZone *)timeZone {
case ISO8601DateFormatOrdinal:
return [self stringFromDate:date formatString:ISO_ORDINAL_DATE_FORMAT timeZone:timeZone];
default:
- [NSException raise:NSInternalInconsistencyException format:@"self.format was %d, not calendar (%d), week (%d), or ordinal (%d)", self.format, ISO8601DateFormatCalendar, ISO8601DateFormatWeek, ISO8601DateFormatOrdinal];
+ [NSException raise:NSInternalInconsistencyException format:@"self.format was %u, not calendar (%d), week (%d), or ordinal (%d)", self.format, ISO8601DateFormatCalendar, ISO8601DateFormatWeek, ISO8601DateFormatOrdinal];
return nil;
}
}
@@ -705,7 +705,7 @@ - (NSString *) stringFromDate:(NSDate *)date formatString:(NSString *)dateFormat
if (offset == 0)
str = [str stringByAppendingString:ISO_TIMEZONE_UTC_FORMAT];
else
- str = [str stringByAppendingFormat:ISO_TIMEZONE_OFFSET_FORMAT, offset / 60, offset % 60];
+ str = [str stringByAppendingFormat:ISO_TIMEZONE_OFFSET_FORMAT, (int)offset / 60, (int)offset % 60];
}
//Undo the change we made earlier
Please sign in to comment.
Something went wrong with that request. Please try again.