We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9ff7e4 commit 777d874Copy full SHA for 777d874
packages/orm/src/client/crud/dialects/postgresql.ts
@@ -106,7 +106,8 @@ export class PostgresCrudDialect<Schema extends SchemaDef> extends BaseCrudDiale
106
107
private transformOutputDate(value: unknown) {
108
if (typeof value === 'string') {
109
- return new Date(value);
+ // force interpret as UTC
110
+ return new Date(value.endsWith('Z') ? value : `${value}Z`);
111
} else if (value instanceof Date && this.options.fixPostgresTimezone !== false) {
112
// SPECIAL NOTES:
113
// node-pg has a terrible quirk that it returns the date value in local timezone
0 commit comments