mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat: use dateTimeOriginal to calculate album date (#14119)
This commit is contained in:
parent
3dad19883d
commit
333ca8827e
2 changed files with 8 additions and 2 deletions
5
server/src/utils/date-time.ts
Normal file
5
server/src/utils/date-time.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { AssetEntity } from 'src/entities/asset.entity';
|
||||
|
||||
export const getAssetDateTime = (asset: AssetEntity | undefined) => {
|
||||
return asset?.exifInfo?.dateTimeOriginal || asset?.fileCreatedAt;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue