activerecord-jdbc-adapter icon indicating copy to clipboard operation
activerecord-jdbc-adapter copied to clipboard

Catch HOUR_OF_DAY error

Open jbaiza opened this issue 1 year ago • 3 comments

If the time stored in the missing daylight saving hour, MySQL JDBC driver starting from version 8.0.23 will raise this error (https://dev.mysql.com/doc/relnotes/connector-j/en/news-8-0-23.html). If the date time value stored in the column actually is UTC time, then it will return a string representation of the value, not the time converted to the local time zone. More in https://github.com/jruby/activerecord-jdbc-adapter/issues/1091

jbaiza avatar Oct 22 '24 10:10 jbaiza