From 359a86dfa85550f95535a1b7e4110578f214fb43 Mon Sep 17 00:00:00 2001 From: Wenqi Li Date: Tue, 18 Aug 2020 16:30:56 +0800 Subject: [PATCH] change medium creationDate and modifiedDate precision from second to millisecond on iOS platform --- ios/Classes/SwiftPhotoGalleryPlugin.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/Classes/SwiftPhotoGalleryPlugin.swift b/ios/Classes/SwiftPhotoGalleryPlugin.swift index e7498e5..b159441 100644 --- a/ios/Classes/SwiftPhotoGalleryPlugin.swift +++ b/ios/Classes/SwiftPhotoGalleryPlugin.swift @@ -372,8 +372,8 @@ public class SwiftPhotoGalleryPlugin: NSObject, FlutterPlugin { "height": asset.pixelHeight, "width": asset.pixelWidth, "duration": NSInteger(asset.duration * 1000), - "creationDate": (asset.creationDate != nil) ? NSInteger(asset.creationDate!.timeIntervalSince1970) * 1000 : nil, - "modifiedDate": (asset.modificationDate != nil) ? NSInteger(asset.modificationDate!.timeIntervalSince1970) * 1000 : nil + "creationDate": (asset.creationDate != nil) ? NSInteger(asset.creationDate!.timeIntervalSince1970 * 1000) : nil, + "modifiedDate": (asset.modificationDate != nil) ? NSInteger(asset.modificationDate!.timeIntervalSince1970 * 1000) : nil ] }