From d80f0888dcd14ef331b530e9bc658057c943b07d Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 5 May 2023 12:32:03 +0800 Subject: [PATCH] fix(nocodb): revise pg api logic --- packages/nocodb/src/models/Model.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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') {