Browse Source

fix(nocodb): remove formula for convertdatetime

pull/5659/head
Wing-Kam Wong 2 years ago
parent
commit
09bd8010e5
  1. 4
      packages/nocodb/src/db/BaseModelSqlv2.ts

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

@ -3359,9 +3359,7 @@ class BaseModelSqlv2 {
if (data) { if (data) {
const dateTimeColumns = ( const dateTimeColumns = (
childTable ? childTable.columns : this.model.columns childTable ? childTable.columns : this.model.columns
).filter( ).filter((c) => c.uidt === UITypes.DateTime);
(c) => c.uidt === UITypes.DateTime || c.uidt === UITypes.Formula,
);
if (dateTimeColumns.length) { if (dateTimeColumns.length) {
if (Array.isArray(data)) { if (Array.isArray(data)) {
data = data.map((d) => data = data.map((d) =>

Loading…
Cancel
Save