Browse Source

Merge pull request #6877 from nocodb/fix/pg-datetime

fix(nocodb): pg datetime issue
nc-fix/date-picker
Raju Udava 1 year ago committed by GitHub
parent
commit
418726022e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      packages/nocodb/src/db/BaseModelSqlv2.ts

5
packages/nocodb/src/db/BaseModelSqlv2.ts

@ -4304,10 +4304,7 @@ class BaseModelSqlv2 {
} }
} }
if ( if (this.isPg) {
this.isPg &&
(col.dt === 'timestamp with time zone' || col.dt === 'timestamptz')
) {
// postgres - timezone already attached to input // postgres - timezone already attached to input
// e.g. 2023-05-11 16:16:51+08:00 // e.g. 2023-05-11 16:16:51+08:00
keepLocalTime = false; keepLocalTime = false;

Loading…
Cancel
Save