|
|
@ -488,10 +488,14 @@ export default class Model implements TableType { |
|
|
|
.format('YYYY-MM-DD HH:mm:ssZ'); |
|
|
|
.format('YYYY-MM-DD HH:mm:ssZ'); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// External DB - keep it as it is
|
|
|
|
// External DB
|
|
|
|
val = dayjs(val).format( |
|
|
|
if (isMySQL) { |
|
|
|
isMySQL ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD HH:mm:ssZ', |
|
|
|
// convert to utc
|
|
|
|
); |
|
|
|
val = dayjs(val).utc().format('YYYY-MM-DD HH:mm:ss'); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
// keep it as it is
|
|
|
|
|
|
|
|
val = dayjs(val).format('YYYY-MM-DD HH:mm:ssZ'); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
insertObj[sanitize(col.column_name)] = val; |
|
|
|
insertObj[sanitize(col.column_name)] = val; |
|
|
|