[CONJ-647] SYSTEM Time zone not working correctly for client connection Created: 2018-09-19  Updated: 2018-09-19

Status: Open
Project: MariaDB Connector/J
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Jerome Zingg Assignee: Diego Dupin
Resolution: Unresolved Votes: 0
Labels: None


 Description   

When connecting to a MariaDB database which was the defaults of @@global.time_zone = SYSTEM and @@session.time_zone = SYSTEM, the driver is reflecting my US/Eastern timezone as +20 from UTC, rather than -4 from UTC (i.e., in the wrong direction).

The problem is queries such as:

select cast('2018-08-01' as date)

, return 2018-07-31 (-20 hours from 2018-08-01 00:00:00.000) rather than the correct 2018-08-01.

Connecting to the same database using the MySQL Connector/j driver does not exhibit this incorrect behavior.


Generated at Thu Feb 08 03:17:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.