feat: use dateTimeOriginal to calculate album date (#14119)

This commit is contained in:
Pablo Molina 2024-11-13 18:17:14 +01:00 committed by GitHub
parent 3dad19883d
commit 333ca8827e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View file

@ -0,0 +1,5 @@
import { AssetEntity } from 'src/entities/asset.entity';
export const getAssetDateTime = (asset: AssetEntity | undefined) => {
return asset?.exifInfo?.dateTimeOriginal || asset?.fileCreatedAt;
};