Browse Source

fix(nocodb): add local() for mysql api datetime

pull/5601/head
Wing-Kam Wong 2 years ago
parent
commit
b0c90e9243
  1. 1
      packages/nocodb/src/models/Model.ts

1
packages/nocodb/src/models/Model.ts

@ -467,6 +467,7 @@ export default class Model implements TableType {
// e.g. 2021-01-01 04:00:00+04:00
val = dayjs
.utc(val)
.local()
.utcOffset(d.getTimezoneOffset(), true)
.format('YYYY-MM-DD HH:mm:ss');
}

Loading…
Cancel
Save