I am facing an issue with MySql Select statement for date field with Day Light Saving.
Cause: java.sql.SQLException: HOUR_OF_DAY: 2 -> 3
The only solution worked for is setting serverTimezone=GMT-6 in MySql Connection String. But this I will need to change when daylight saving is not there.
If I am trying to set serverTimezone=America/Denver then it give same error.
Cause: java.sql.SQLException: HOUR_OF_DAY: 2 -> 3
My Database time zone is America/Denver
My project is Jersey project with Java 8 and Mybatis.
I tried multiple suggested solution but nothing is working concrete. Please guide me on this.
DATETIMEorTIMESTAMP? Please edit your question. - O. Jones2019-03-10 02:04:13. The issue is with these types of records only. The issue is coming with Select Query. If I execute the query on the Mysql database directly it works. - Ajay Sharma