Browse Source

fix(nocodb): mssql insert date time logic (ext db)

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

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

@ -527,7 +527,7 @@ export default class Model implements TableType {
val = dayjs(val).utc().format('YYYY-MM-DD HH:mm:ss');
}
}
} else if (isSqlite) {
} else if (isSqlite || isMssql) {
if (val.slice(-1) === 'Z') {
// from UI
val = dayjs(val).utc().format('YYYY-MM-DD HH:mm:ssZ');

Loading…
Cancel
Save