Permalink
Browse files

Fixed issue with picture date being off

  • Loading branch information...
1 parent 8c12dfb commit 45990f5ee7f5aeadb418f6632e5b7014c8a7213d @gpambrozio committed Dec 17, 2014
Showing with 1 addition and 4 deletions.
  1. +1 −4 GusUtils/NSMutableDictionary+ImageMetadata.m
View
5 GusUtils/NSMutableDictionary+ImageMetadata.m
@@ -13,12 +13,9 @@ @implementation NSMutableDictionary (ImageMetadataCategory)
@dynamic location;
- (NSString *)getUTCFormattedDate:(NSDate *)localDate {
-
- static NSDateFormatter *dateFormatter;
+ static NSDateFormatter *dateFormatter = nil;
if (dateFormatter == nil) {
dateFormatter = [[NSDateFormatter alloc] init];
- NSTimeZone *timeZone = [NSTimeZone timeZoneWithName:@"UTC"];
- [dateFormatter setTimeZone:timeZone];
[dateFormatter setDateFormat:@"yyyy:MM:dd HH:mm:ss"];
}
NSString *dateString = [dateFormatter stringFromDate:localDate];

0 comments on commit 45990f5

Please sign in to comment.