mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: local offset hours (#21147)
This commit is contained in:
parent
801af34d9a
commit
03e7922589
2 changed files with 2 additions and 2 deletions
|
|
@ -277,7 +277,7 @@ with
|
|||
epoch
|
||||
from
|
||||
(
|
||||
asset."localDateTime" - asset."fileCreatedAt" at time zone 'UTC'
|
||||
asset."localDateTime" AT TIME ZONE 'UTC' - asset."fileCreatedAt" at time zone 'UTC'
|
||||
)
|
||||
)::real / 3600 as "localOffsetHours",
|
||||
"asset"."ownerId",
|
||||
|
|
|
|||
|
|
@ -566,7 +566,7 @@ export class AssetRepository {
|
|||
sql`asset.type = 'IMAGE'`.as('isImage'),
|
||||
sql`asset."deletedAt" is not null`.as('isTrashed'),
|
||||
'asset.livePhotoVideoId',
|
||||
sql`extract(epoch from (asset."localDateTime" - asset."fileCreatedAt" at time zone 'UTC'))::real / 3600`.as(
|
||||
sql`extract(epoch from (asset."localDateTime" AT TIME ZONE 'UTC' - asset."fileCreatedAt" at time zone 'UTC'))::real / 3600`.as(
|
||||
'localOffsetHours',
|
||||
),
|
||||
'asset.ownerId',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue