mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix: memories off by one (#16434)
This commit is contained in:
parent
5c0538e52c
commit
e684062569
5 changed files with 24 additions and 24 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue