fix(server): always get UTC dates from postgres (#15920)

This commit is contained in:
Jason Rasmussen authored and GitHub committed 2025-02-05 18:47:27 +00:00
1 parent 1492b55c07
commit 48d421e28c
1 file changed
+4 -1
+4 -1
View File
@@ -227,6 +227,7 @@ const getEnv = (): EnvData => {
}
const driverOptions = {
...parsedOptions,
onnotice: (notice: Notice) => {
if (notice['severity'] !== 'NOTICE') {
console.warn('Postgres notice:', notice);
@@ -247,7 +248,9 @@ const getEnv = (): EnvData => {
serialize: (value: number) => value.toString(),
},
},
...parsedOptions,
connection: {
TimeZone: 'UTC',
},
};
return {