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
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;
};