This is caused by https://bugs.mysql.com/bug.php?id=91112. In essence, MySQL ConnectorJ 8.x applies timezone conversion to dates before writing them (which might change the exact date), then truncates the time part when storing it in the database. So when it retrieves the date later, there is no way it can convert it back to the original date. Apparently they consider it's not a bug, because the JDBC spec does not state explicitly what they are supposed to do. Never mind that all other JDBC drivers do it differently... Anyway, if they consider that's how things are supposed to work, there's not much we can do to work around the problem. I'll disable the tests. |