From 5901ca0fa1efa4d3bd6e24c5ec0ade40e0517475 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 8 May 2023 18:03:01 +0800 Subject: [PATCH] fix(nocodb): add missing isMySQL condition --- packages/nocodb/src/db/BaseModelSqlv2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/db/BaseModelSqlv2.ts b/packages/nocodb/src/db/BaseModelSqlv2.ts index 4a9418d10e..6cd8e73dc0 100644 --- a/packages/nocodb/src/db/BaseModelSqlv2.ts +++ b/packages/nocodb/src/db/BaseModelSqlv2.ts @@ -3248,7 +3248,7 @@ class BaseModelSqlv2 { // Then, MySQL converts those values back from UTC to the current time zone for retrieval. // To make it consistent with other DB types, we show the result in UTC instead // e.g. 2022-01-01 04:30:00+00:00 - if (data) { + if (this.isMySQL && data) { const dateTimeColumns = ( childTable ? childTable.columns : this.model.columns ).filter((c) => c.uidt === UITypes.DateTime);