Skip to content

Commit

Permalink
PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuckame committed Dec 23, 2024
1 parent 7e2009f commit f9791f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
9 changes: 8 additions & 1 deletion docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions server/src/services/metadata.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
);
Expand Down

0 comments on commit f9791f3

Please sign in to comment.