We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 701a74d commit de3bc0cCopy full SHA for de3bc0c
1 file changed
app/ios/iosinterface.mm
@@ -161,6 +161,14 @@ +( QString )handleCameraPhoto:( NSDictionary * )info :( NSString * )imagePath
161
qWarning( "invalid compass, no GPS Direction" );
162
}
163
164
+ NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
165
+ [dateFormatter setTimeZone:[NSTimeZone timeZoneWithName:@"UTC"]];
166
+ NSDate *now = [NSDate date];
167
+ [dateFormatter setDateFormat:@"yyyy:MM:dd"];
168
+ [gpsDict setValue:[dateFormatter stringFromDate:now] forKey:( NSString * )kCGImagePropertyGPSDateStamp];
169
+ [dateFormatter setDateFormat:@"HH:mm:ss"];
170
+ [gpsDict setValue:[dateFormatter stringFromDate:now] forKey:( NSString * )kCGImagePropertyGPSTimeStamp];
171
+
172
return gpsDict;
173
174
0 commit comments