Bug #90813 | Timezone not correctly read from host | ||
---|---|---|---|
Submitted: | 9 May 2018 20:11 | Modified: | 11 May 2018 7:10 |
Reporter: | Dale Preston | Email Updates: | |
Status: | Analyzing | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.6.40 | OS: | CentOS (7.3) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[9 May 2018 20:11]
Dale Preston
[10 May 2018 10:08]
Chiranjeevi Battula
Hello Dale Preston, Thank you for the bug report. Could you please provide us post installation configuration steps ( - please make it as private if you prefer) to confirm this issue at our end? Please follow the below instructions : https://dev.mysql.com/doc/refman/5.6/en/postinstallation.html "Optionally, populate time zone tables to enable recognition of named time zones. For instructions, see Section 5.1.12, “MySQL Server Time Zone Support”. Thanks, Chiranjeevi.
[10 May 2018 14:00]
Dale Preston
I had already followed the steps for adding the timezone information to the table and verified that the timezone data was there and I still get the same issue. I have noticed in various technical forums that this issue has been around a very long time; there are a lot of people suffering the same problem. The simple fix is for MySQL to simply change where it gets timezone information. It should not be detecting my timezone as CDT; it should be recognizing the configured America/Chicago. Actually, I believe, that even if the timezone table was not populated, it would be good if MySQL would simply add this value since it is the known timezone of the host. MySQL has been around a long time and has a great reputation. I think it would be good for them to eliminate this long-standing issue that no other database has. This only occurs in MySQL.
[9 Jul 2018 8:45]
Poul Landman
I have the same problem. I want to install OpenGTS on one system, with MySql on another system. Setting up the database by a script fails. Communication between the system works. The error is: [DBAdmin.execCommands:1007] java.sql.SQLException: The server time zone value 'CEST' is unrecognized or represents more than one time zone. On the MySQL server are 4 databases running already so I do not want to change any settngs on the server. Global TimeZone on the MySQL server is SYSTEM which is Europe/Amsterdam.
[21 Aug 2018 14:36]
Brian Pontarelli
I also have this issue. I've done quite a bit of research and it appears to be a connector/j issue and likely a regression. I've verified that different versions of the connector/j driver do not have this error when connecting to the same database server. The work-around I am using is to add the timezone to the connection string like this: jdbc:mysql://localhost:3306/foobarbaz?serverTimezone=UTC However, I agree with the other commenters, this is a long standing issue that should be fixed.
[4 Jul 2021 9:17]
Ewa Śliwińska
I have the same problem when running Java code (attached) on my localhost. The thing is I'm not calling any timezone tables, so I cannot understand why it affects me. Attached also the table definition.
[4 Jul 2021 9:18]
Ewa Śliwińska
Java code to reproduce the problem
Attachment: Java code (application/octet-stream, text), 682 bytes.
[4 Jul 2021 9:18]
Ewa Śliwińska
COFEESS table definition
Attachment: table definition (application/octet-stream, text), 540 bytes.