From 4e7f3211595a79522cd6171d43a8cc786dc48e8f Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 22 Apr 2023 18:14:49 +0800 Subject: [PATCH] fix(nocodb): remove timezone setting in meta.service.ts --- packages/nocodb-nest/src/meta/meta.service.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/packages/nocodb-nest/src/meta/meta.service.ts b/packages/nocodb-nest/src/meta/meta.service.ts index 015fbf30ef..29f02d4b8e 100644 --- a/packages/nocodb-nest/src/meta/meta.service.ts +++ b/packages/nocodb-nest/src/meta/meta.service.ts @@ -1086,19 +1086,6 @@ export class MetaService { migrationSource: new XcMigrationSourcev2(), tableName: 'xc_knex_migrationsv2', }); - - // set timezone - if (this.isMySQL()) { - await this.connection.raw(`SET time_zone = '+00:00'`); - } else if (this.isPg()) { - await this.connection.raw(`SET TIME ZONE 'UTC'`); - } else if (this.isMssql()) { - await this.connection.raw(`SET TIMEZONE = 'UTC'`); - } else if (this.isSqlite()) { - await this.connection.raw(`PRAGMA timezone = 'UTC'`); - } else if (this.isSnowflake()) { - // TODO - } return true; } }