mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
PR fixes
This commit is contained in:
parent
7e2009f038
commit
f9791f3445
9
docs/package-lock.json
generated
9
docs/package-lock.json
generated
@ -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 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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`,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user