Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mobile][photos] fix trash timestamp units

Priyanshu Dangarec8eebb4edc57
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/trash_page.dart b/mobile/apps/photos/lib/ui/viewer/gallery/trash_page.dart
index 98b16afd63..56069dfd74 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/trash_page.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/trash_page.dart
@@ -169,8 +169,9 @@ class _TrashPageState extends State<_TrashPage> {
files.add(
TrashFile.fromEnteFile(
fileFromAsset(trash.deviceFolder, asset),
- createdAt: trash.deleteBy - 30 * 86400,
- updateAt: trash.deleteBy - 30 * 86400,
+ createdAt:
+ trash.deleteBy - const Duration(days: 30).inMicroseconds,
+ updateAt: trash.deleteBy - const Duration(days: 30).inMicroseconds,
deleteBy: trash.deleteBy,
isSystemOnly: true,
systemTrashID: trash.localID,