Browse Source

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

fix(nocodb): pg datetime issue
nc-fix/date-picker
Raju Udava 10 months 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 (
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;

Loading…
Cancel
Save