Browse Source

refactor(nocodb): remove comments

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

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

@ -467,13 +467,11 @@ export default class Model implements TableType {
} else {
// from API
// e.g. 2023-05-10 18:45:30+08:00 -> 2023-05-10 18:45:30
console.log('before1', val);
val = dayjs
.utc(val)
.local()
.utcOffset(d.getTimezoneOffset(), true)
.format('YYYY-MM-DD HH:mm:ss');
console.log('after1', val);
}
} else if (isSqlite) {
// e.g. 2023-05-10T10:38:50.000Z -> 2023-05-10 10:38:50

Loading…
Cancel
Save