Skip to content

Commit 1d20926

Browse files
committed
Use '+00:00' over UTC for MySQL timezone
1 parent 9b50dcc commit 1d20926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-core/src/mysql/connection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ impl MySqlConnection {
362362
// This allows us to assume that the output from a TIMESTAMP field is UTC
363363

364364
// language=MySQL
365-
self.execute_raw("SET time_zone = 'UTC'").await?;
365+
self.execute_raw("SET time_zone = '+00:00'").await?;
366366

367367
// https://mathiasbynens.be/notes/mysql-utf8mb4
368368

0 commit comments

Comments
 (0)