mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 03:08:01 +02:00
Always use UTC time for the MariaDB/MySQL session (#87583)
This commit is contained in:
@ -543,6 +543,9 @@ def setup_connection_for_dialect(
|
||||
or MARIA_DB_107 <= version < MARIADB_WITH_FIXED_IN_QUERIES_107
|
||||
or MARIA_DB_108 <= version < MARIADB_WITH_FIXED_IN_QUERIES_108
|
||||
)
|
||||
|
||||
# Ensure all times are using UTC to avoid issues with daylight savings
|
||||
execute_on_connection(dbapi_connection, "SET time_zone = '+00:00'")
|
||||
elif dialect_name == SupportedDialect.POSTGRESQL:
|
||||
# Historically we have marked PostgreSQL as having slow range in select
|
||||
# but this may not be true for all versions. We should investigate
|
||||
|
Reference in New Issue
Block a user