mirror of
https://github.com/immich-app/immich.git
synced 2025-04-17 21:46:25 +02:00
fix(server): always get UTC dates from postgres (#15920)
This commit is contained in:
parent
1492b55c07
commit
48d421e28c
1 changed files with 4 additions and 1 deletions
|
@ -227,6 +227,7 @@ const getEnv = (): EnvData => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const driverOptions = {
|
const driverOptions = {
|
||||||
|
...parsedOptions,
|
||||||
onnotice: (notice: Notice) => {
|
onnotice: (notice: Notice) => {
|
||||||
if (notice['severity'] !== 'NOTICE') {
|
if (notice['severity'] !== 'NOTICE') {
|
||||||
console.warn('Postgres notice:', notice);
|
console.warn('Postgres notice:', notice);
|
||||||
|
@ -247,7 +248,9 @@ const getEnv = (): EnvData => {
|
||||||
serialize: (value: number) => value.toString(),
|
serialize: (value: number) => value.toString(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
...parsedOptions,
|
connection: {
|
||||||
|
TimeZone: 'UTC',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Add table
Reference in a new issue