💚 End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Don't use the offset
Manav Rathi8e284c1139be
diff --git a/web/apps/photos/src/components/PhotoViewer/FileInfo/RenderCreationTime.tsx b/web/apps/photos/src/components/PhotoViewer/FileInfo/RenderCreationTime.tsxindex 372a1ee3d7..885310ee28 100644--- a/web/apps/photos/src/components/PhotoViewer/FileInfo/RenderCreationTime.tsx+++ b/web/apps/photos/src/components/PhotoViewer/FileInfo/RenderCreationTime.tsx@@ -32,7 +32,15 @@ export function RenderCreationTime({try {setLoading(true);if (isInEditMode && file) {- const { dateTime, offset, timestamp } = pickedTime;+ // Use the updated date time (both in its canonical dateTime+ // form, and also as the legacy timestamp). But don't use the+ // offset. The offset here will be the offset of the computer+ // where this user is making this edit, not the offset of the+ // place where the photo was taken. In a future iteration of the+ // date time editor, we can provide functionality for the user+ // to edit the associated offset, but right now it is not even+ // surfaced, so don't also potentially overwrite it.+ const { dateTime, timestamp } = pickedTime;if (timestamp == file?.metadata.creationTime) {// Same as before.closeEditMode();@@ -44,7 +52,7 @@ export function RenderCreationTime({const cryptoWorker = await ComlinkCryptoWorker.getInstance();await updateRemotePublicMagicMetadata(file,- { dateTime, dateTimeOffset: offset, editedTime: timestamp },+ { dateTime, editedTime: timestamp },cryptoWorker.encryptMetadata,cryptoWorker.decryptMetadata,);diff --git a/web/packages/media/file-metadata.ts b/web/packages/media/file-metadata.tsindex 07c2dcde84..0e47280708 100644--- a/web/packages/media/file-metadata.ts+++ b/web/packages/media/file-metadata.ts@@ -167,12 +167,12 @@ export interface PublicMagicMetadata {*/dateTime?: string;/**- * When available, a "±HH:mm" string indicating the UTC offset for- * {@link dateTime}.+ * When available, a "±HH:mm" string indicating the UTC offset of the place+ * where the photo was taken.** e.g. "+02:00".*/- dateTimeOffset?: string;+ offsetTime?: string;/*** Modified value of the date time associated with an {@link EnteFile}.*