mirror of
https://github.com/immich-app/immich.git
synced 2025-11-27 00:59:58 +09:00
fix(web): bucket by localDateTime (#12612)
fix(web): local date time for buckets
This commit is contained in:
@@ -219,9 +219,9 @@
|
||||
<p class="mt-1 truncate font-medium" title={person.name}>{person.name}</p>
|
||||
{#if person.birthDate}
|
||||
{@const personBirthDate = DateTime.fromISO(person.birthDate)}
|
||||
{@const age = Math.floor(DateTime.fromISO(asset.fileCreatedAt).diff(personBirthDate, 'years').years)}
|
||||
{@const age = Math.floor(DateTime.fromISO(asset.localDateTime).diff(personBirthDate, 'years').years)}
|
||||
{@const ageInMonths = Math.floor(
|
||||
DateTime.fromISO(asset.fileCreatedAt).diff(personBirthDate, 'months').months,
|
||||
DateTime.fromISO(asset.localDateTime).diff(personBirthDate, 'months').months,
|
||||
)}
|
||||
{#if age >= 0}
|
||||
<p
|
||||
|
||||
Reference in New Issue
Block a user