diff --git a/packages/nocodb-nest/src/models/Model.ts b/packages/nocodb-nest/src/models/Model.ts index 0921f1698f..ca5013c9d7 100644 --- a/packages/nocodb-nest/src/models/Model.ts +++ b/packages/nocodb-nest/src/models/Model.ts @@ -466,7 +466,15 @@ export default class Model implements TableType { .format('YYYY-MM-DD HH:mm:ss'); } } else if (isSqlite) { - val = dayjs(val).utc().format('YYYY-MM-DD HH:mm:ss'); + let keepLocalTime = false; + if (val.slice(-1) === 'Z') { + // from UI + keepLocalTime = true; + } + val = dayjs + .utc(val) + .utcOffset(d.getTimezoneOffset(), keepLocalTime) + .format('YYYY-MM-DD HH:mm:ss'); } else { let keepLocalTime = false; if (val.slice(-1) === 'Z') {