diff --git a/docs/package-lock.json b/docs/package-lock.json index c9ae86bec9..19698b3b65 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -28,6 +28,7 @@ }, "devDependencies": { "@docusaurus/module-type-aliases": "~3.5.2", + "@tsconfig/docusaurus": "^2.0.2", "prettier": "^3.2.4", "typescript": "^5.1.6" }, @@ -3457,6 +3458,12 @@ "node": ">=10.13.0" } }, + "node_modules/@tsconfig/docusaurus": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/docusaurus/-/docusaurus-2.0.3.tgz", + "integrity": "sha512-3l1L5PzWVa7l0691TjnsZ0yOIEwG9DziSqu5IPZPlI5Dowi7z42cEym8Y35GHbgHvPcBfNxfrbxm7Cncn4nByQ==", + "dev": true + }, "node_modules/@types/acorn": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/@types/acorn/-/acorn-4.0.6.tgz", @@ -17637,4 +17644,4 @@ } } } -} +} \ No newline at end of file diff --git a/server/src/services/metadata.service.ts b/server/src/services/metadata.service.ts index 311b3be790..f46cda40e8 100644 --- a/server/src/services/metadata.service.ts +++ b/server/src/services/metadata.service.ts @@ -589,11 +589,6 @@ export class MetadataService extends BaseService { let dateTimeOriginal = dateTime?.toDate(); let localDateTime = dateTime?.toDateTime().setZone('UTC', { keepLocalTime: true }).toJSDate(); if (!localDateTime || !dateTimeOriginal) { - // When a file is copied (but not moved) before being uploaded to immich, the target file creation - // date is set at the current timestamp, while the modification date remains untouched, so if the - // user copied the asset while he did not modified the file (like cropping, rotating and more), then - // we use the modification timestamp as it's still the original date. If the user modified the asset, - // then there is no other solution except a further manual fix. this.logger.warn( `No valid date found in exif tags from asset ${asset.id}, falling back to earliest timestamp between file creation and file modification`, );