activerecord-jdbc-adapter
activerecord-jdbc-adapter copied to clipboard
Catch HOUR_OF_DAY error
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