From c79922b20edec6153f01ac66caa58a516e79f4e9 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 29 Aug 2023 20:21:14 +0800 Subject: [PATCH] fix(nocodb): pg datetime --- packages/nocodb/src/db/BaseModelSqlv2.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/nocodb/src/db/BaseModelSqlv2.ts b/packages/nocodb/src/db/BaseModelSqlv2.ts index f1bc39f224..7b1b5c46e2 100644 --- a/packages/nocodb/src/db/BaseModelSqlv2.ts +++ b/packages/nocodb/src/db/BaseModelSqlv2.ts @@ -3914,10 +3914,7 @@ class BaseModelSqlv2 { } } - if ( - this.isPg && - (col.dt === 'timestamp with time zone' || col.dt === 'timestamptz') - ) { + if (this.isPg) { // postgres - timezone already attached to input // e.g. 2023-05-11 16:16:51+08:00 keepLocalTime = false;