From 1d209261899a3e2bd25cbdad999095f2232d9307 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Sat, 11 Jan 2020 03:54:04 -0800 Subject: [PATCH] Use '+00:00' over UTC for MySQL timezone --- sqlx-core/src/mysql/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlx-core/src/mysql/connection.rs b/sqlx-core/src/mysql/connection.rs index f7c92f30..9af8c9c2 100644 --- a/sqlx-core/src/mysql/connection.rs +++ b/sqlx-core/src/mysql/connection.rs @@ -362,7 +362,7 @@ impl MySqlConnection { // This allows us to assume that the output from a TIMESTAMP field is UTC // language=MySQL - self.execute_raw("SET time_zone = 'UTC'").await?; + self.execute_raw("SET time_zone = '+00:00'").await?; // https://mathiasbynens.be/notes/mysql-utf8mb4