diff --git a/packages/nocodb/src/models/Model.ts b/packages/nocodb/src/models/Model.ts index 6162410415..bd34915ddd 100644 --- a/packages/nocodb/src/models/Model.ts +++ b/packages/nocodb/src/models/Model.ts @@ -482,14 +482,9 @@ export default class Model implements TableType { .utcOffset(d.getTimezoneOffset(), keepLocalTime) .format('YYYY-MM-DD HH:mm:ss'); } else if (isPg) { - let keepLocalTime = false; - if (val.slice(-1) === 'Z' || val.slice(-6) === '+00:00') { - // from UI - keepLocalTime = true; - } val = dayjs .utc(val) - .utcOffset(d.getTimezoneOffset(), keepLocalTime) + .utcOffset(d.getTimezoneOffset(), true) .format('YYYY-MM-DD HH:mm:ssZ'); } else if (isMssql) { if (val.slice(-1) === 'Z' || val.slice(-6) === '+00:00') {