mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 09:15:35 +03:00
fix: memories off by one (#16434)
This commit is contained in:
@@ -55,9 +55,10 @@ with
|
||||
inner join "exif" on "a"."id" = "exif"."assetId"
|
||||
)
|
||||
select
|
||||
(
|
||||
(now() at time zone 'UTC')::date - ("localDateTime" at time zone 'UTC')::date
|
||||
) / 365 as "yearsAgo",
|
||||
date_part(
|
||||
'year',
|
||||
("localDateTime" at time zone 'UTC')::date
|
||||
)::int as "year",
|
||||
json_agg("res") as "assets"
|
||||
from
|
||||
"res"
|
||||
|
||||
Reference in New Issue
Block a user