Other/Adium Spotlight Importer/GetMetadataForFile.m
branchadium-1.5.9
changeset 5749 1521cab508bf
parent 5722 4ae85ad012cd
child 5750 dad5f3048dc3
--- a/Other/Adium Spotlight Importer/GetMetadataForFile.m	Wed Oct 23 14:22:49 2013 -0500
+++ b/Other/Adium Spotlight Importer/GetMetadataForFile.m	Wed Oct 30 18:34:07 2013 +0100
@@ -242,8 +242,8 @@
 			//pick the first author for this.  likely a bad idea
 			if (startDate && [otherAuthors count]) {
 				NSString *toUID = [otherAuthors objectAtIndex:0];
-				NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] initWithDateFormat:@"%Y-%m-%d" allowNaturalLanguage:NO];
-				[dateFormatter setFormatterBehavior:NSDateFormatterBehavior10_4];
+				NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
+				dateFormatter.dateFormat = @"yyyy'-'MM'-'dd";
 				
 				[attributes setObject:[NSString stringWithFormat:@"%@ on %@",toUID,[dateFormatter stringFromDate:startDate]]
 							   forKey:(NSString *)kMDItemDisplayName];