diff --git a/packages/server/src/integrations/oracle.ts b/packages/server/src/integrations/oracle.ts index 41762576dd..7895692076 100644 --- a/packages/server/src/integrations/oracle.ts +++ b/packages/server/src/integrations/oracle.ts @@ -406,7 +406,10 @@ class OracleIntegration extends Sql implements DatasourcePlus { password: this.config.password, connectString, } - return await oracledb.getConnection(attributes) + const tz = Intl.DateTimeFormat().resolvedOptions().timeZone + const connection = await oracledb.getConnection(attributes) + await connection.execute(`ALTER SESSION SET TIME_ZONE = '${tz}'`) + return connection } async create(query: SqlQuery | string): Promise { diff --git a/packages/server/src/utilities/rowProcessor/index.ts b/packages/server/src/utilities/rowProcessor/index.ts index 62a3b2dd74..82676442dc 100644 --- a/packages/server/src/utilities/rowProcessor/index.ts +++ b/packages/server/src/utilities/rowProcessor/index.ts @@ -28,6 +28,7 @@ import { import { isExternalTableID } from "../../integrations/utils" import { helpers } from "@budibase/shared-core" import { processString } from "@budibase/string-templates" +import { DateTime } from "mssql" export * from "./utils" export * from "./attachments"