When there is no serverZoneId available from the connection url, MySqlConnection get the zone id from the connection (i.e. mysql server). When serverZoneId is set in the connection url, MySqlConnection just update the local context field without keeping it consistent with the timezone of connection. There is no way we can set the desired timezone on connection.
When there is no
serverZoneId
available from the connection url,MySqlConnection
get the zone id from the connection (i.e. mysql server). WhenserverZoneId
is set in the connection url,MySqlConnection
just update the localcontext
field without keeping it consistent with the timezone of connection. There is no way we can set the desired timezone on connection.