diff --git a/src/ios/ListLibraryItems.m b/src/ios/ListLibraryItems.m index dadf100..89420d5 100755 --- a/src/ios/ListLibraryItems.m +++ b/src/ios/ListLibraryItems.m @@ -173,6 +173,8 @@ - (void)uploadItem:(CDVInvokedUrlCommand *)command { [headers setObject:[self getMimeTypeFromPath:resource.originalFilename] forKey:@"Content-Type"]; // Adding creation date of asset to headers NSDateFormatter * df = [[NSDateFormatter alloc] init]; + NSLocale * locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"]; + [df setLocale:locale]; [df setTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"GMT"]]; [df setDateFormat:@"EEE',' dd MMM yyyy HH':'mm':'ss 'GMT'"]; [request setValue:[df stringFromDate:[asset creationDate]] forHTTPHeaderField:@"Date"];