diff --git a/examples/minimal/prisma/schema.prisma b/examples/minimal/prisma/schema.prisma index 3b1dfe70..3b8d26e0 100644 --- a/examples/minimal/prisma/schema.prisma +++ b/examples/minimal/prisma/schema.prisma @@ -10,7 +10,7 @@ generator custom_generator { datasource db { provider = "mysql" - url = "mysql://root:@localhost:3306/accel_test_minimal" + url = "mysql://root:@localhost:3306/accel_test_minimal?timezone=Z" } model User { diff --git a/examples/minimal/src/models/_types.ts b/examples/minimal/src/models/_types.ts index 5c1248ca..b65a8742 100644 --- a/examples/minimal/src/models/_types.ts +++ b/examples/minimal/src/models/_types.ts @@ -75,7 +75,7 @@ export const dataSource = { activeProvider: "mysql", url: { fromEnvVar: null, - value: "mysql://root:@localhost:3306/accel_test_minimal", + value: "mysql://root:@localhost:3306/accel_test_minimal?timezone=Z", }, schemas: [], } as DataSource; diff --git a/tests/models/_types.ts b/tests/models/_types.ts index db718a9b..856e0a9f 100644 --- a/tests/models/_types.ts +++ b/tests/models/_types.ts @@ -777,7 +777,7 @@ export const dataSource = { "activeProvider": "mysql", "url": { "fromEnvVar": null, - "value": "mysql://root:@localhost:3306/accel_test1" + "value": "mysql://root:@localhost:3306/accel_test1?timezone=Z" }, "schemas": [] } as DataSource; diff --git a/tests/models/dataSource.test.ts b/tests/models/dataSource.test.ts index 0dac47f5..4adb4d71 100644 --- a/tests/models/dataSource.test.ts +++ b/tests/models/dataSource.test.ts @@ -11,7 +11,7 @@ test("dataSource", () => { activeProvider: "mysql", url: { fromEnvVar: null, - value: "mysql://root:@localhost:3306/accel_test1", + value: "mysql://root:@localhost:3306/accel_test1?timezone=Z", }, schemas: [], }); @@ -51,7 +51,7 @@ test("getDatabaseConfig()", () => { case "mysql": expect(config).toMatchObject({ type: "mysql", - datasourceUrl: "mysql://root:@localhost:3306/accel_test1", + datasourceUrl: "mysql://root:@localhost:3306/accel_test1?timezone=Z", prismaDir: new RegExp("/.+/tests/prisma_mysql"), }); break; diff --git a/tests/prisma_mysql/schema.prisma b/tests/prisma_mysql/schema.prisma index 9d8923ac..aeca0819 100644 --- a/tests/prisma_mysql/schema.prisma +++ b/tests/prisma_mysql/schema.prisma @@ -10,7 +10,7 @@ generator custom_generator { datasource db { provider = "mysql" - url = "mysql://root:@localhost:3306/accel_test1" + url = "mysql://root:@localhost:3306/accel_test1?timezone=Z" } model User {