Use Int32(exactly:)

This commit is contained in:
Ali 2023-04-28 11:24:50 +04:00
parent 3f013d9448
commit 72340244c6
2 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ final class MediaPickerGridItemNode: GridItemNode {
} else if let (fetchResult, index) = self.currentState {
let asset = fetchResult.object(at: index)
if let localTimestamp = asset.creationDate?.timeIntervalSince1970 {
let tag = Month(localTimestamp: Int32(localTimestamp)).packedValue
let tag = Month(localTimestamp: Int32(exactly: floor(localTimestamp)) ?? 0).packedValue
self._cachedTag = tag
return tag
} else {

View File

@ -1,5 +1,5 @@
{
"app": "9.6.2",
"app": "9.6.3",
"bazel": "6.1.1",
"xcode": "14.2"
}