Skip to content

armgit / ente

Public Imported from GitHub
0

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

update(exif):comment-updated

Aswin Asokd94399871be7
diff --git a/web/packages/gallery/services/exif.ts b/web/packages/gallery/services/exif.ts
index 0ec128a81c..390d7e9a86 100644
--- a/web/packages/gallery/services/exif.ts
+++ b/web/packages/gallery/services/exif.ts
@@ -112,9 +112,8 @@ const parseDates = (tags: RawExifTags) => {
// dates set to "0000:00:00 00:00:00". Ignore any date whose timestamp is 0
// so that we try with a subsequent (possibly correct) date in the sequence.
//
- // Also filter out the specific corrupted date "4501:01:01 00:00:00".
- // There was this issue where the date defaulted to 4501,
- // and this check is prevent that, it falls back to the proper one.
+ // Filter out a known corrupted date value, "4501:01:01 00:00:00".
+ // Certain devices default to this bogus timestamp, so skip it to allow other dates.
const valid = (d: ParsedMetadataDate | undefined) => {
if (!d?.timestamp) return undefined;
if (d.dateTime === "4501-01-01T00:00:00.000") return undefined;