π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
chore(FileListWithViewer):added-log
Aswin Asok729db272fd34
diff --git a/web/apps/photos/src/components/FileListWithViewer.tsx b/web/apps/photos/src/components/FileListWithViewer.tsxindex 4d61ccdf64..e45f05ffcf 100644--- a/web/apps/photos/src/components/FileListWithViewer.tsx+++ b/web/apps/photos/src/components/FileListWithViewer.tsx@@ -6,6 +6,7 @@ import { useModalVisibility } from "ente-base/components/utils/modal";import { useBaseContext } from "ente-base/context";import { isSameDay } from "ente-base/date";import { formattedDate } from "ente-base/i18n-date";+import log from "ente-base/log";import type { AddSaveGroup } from "ente-gallery/components/utils/save-groups";import {FileViewer,@@ -474,6 +475,10 @@ const MapIcon = styled("img")<{ $isDarkMode: boolean }>(*/const fileTimelineDateString = (file: EnteFile) => {const date = fileCreationPhotoDate(file);+ if (!Number.isFinite(date.getTime()))+ log.error(+ `Invalid file creation date for ${fileFileName(file)} (${file.id})`,+ );return isSameDay(date, new Date())? t("today"): isSameDay(date, new Date(Date.now() - 24 * 60 * 60 * 1000))