change medium creationDate and modifiedDate precision from second to millisecond on iOS platform
This commit is contained in:
parent
181d2ce10d
commit
359a86dfa8
@ -372,8 +372,8 @@ public class SwiftPhotoGalleryPlugin: NSObject, FlutterPlugin {
|
|||||||
"height": asset.pixelHeight,
|
"height": asset.pixelHeight,
|
||||||
"width": asset.pixelWidth,
|
"width": asset.pixelWidth,
|
||||||
"duration": NSInteger(asset.duration * 1000),
|
"duration": NSInteger(asset.duration * 1000),
|
||||||
"creationDate": (asset.creationDate != nil) ? NSInteger(asset.creationDate!.timeIntervalSince1970) * 1000 : nil,
|
"creationDate": (asset.creationDate != nil) ? NSInteger(asset.creationDate!.timeIntervalSince1970 * 1000) : nil,
|
||||||
"modifiedDate": (asset.modificationDate != nil) ? NSInteger(asset.modificationDate!.timeIntervalSince1970) * 1000 : nil
|
"modifiedDate": (asset.modificationDate != nil) ? NSInteger(asset.modificationDate!.timeIntervalSince1970 * 1000) : nil
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user