π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Reuse
Manav Rathi3214031a0cad
diff --git a/web/apps/photos/src/components/PhotoList/index.tsx b/web/apps/photos/src/components/PhotoList/index.tsxindex 00d4e9226b..fd30652db2 100644--- a/web/apps/photos/src/components/PhotoList/index.tsx+++ b/web/apps/photos/src/components/PhotoList/index.tsx@@ -434,14 +434,7 @@ export function PhotoList({timeStampList.push({itemType: ITEM_TYPE.TIME,- date: isSameDay(new Date(currentDate), new Date())- ? t("TODAY")- : isSameDay(- new Date(currentDate),- new Date(Date.now() - A_DAY),- )- ? t("YESTERDAY")- : formatDate(currentDate),+ date: _getDate(currentDate),id: currentDate.toString(),});timeStampList.push({@@ -949,6 +942,10 @@ const A_DAY = 24 * 60 * 60 * 1000;const getDate = (item: EnteFile) => {const currentDate = item.metadata.creationTime / 1000;+ return _getDate(currentDate);+};++const _getDate = (currentDate: number) => {const date = isSameDay(new Date(currentDate), new Date())? t("TODAY"): isSameDay(new Date(currentDate), new Date(Date.now() - A_DAY))