diff --git a/Harpy/Harpy.m b/Harpy/Harpy.m index c13298f..b23f12b 100755 --- a/Harpy/Harpy.m +++ b/Harpy/Harpy.m @@ -460,6 +460,7 @@ - (NSInteger)daysSinceDate:(NSDate *)date { - (NSInteger)daysSinceDateString:(NSString *)dateString { NSDateFormatter *dateFormatter = [NSDateFormatter new]; + dateFormatter.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"]; dateFormatter.dateFormat = @"yyyy-MM-dd'T'HH:mm:ss'Z'"; NSDate *releaseDate = [dateFormatter dateFromString:dateString]; return [self daysSinceDate:releaseDate];