Comment: |
I've confirmed that after setting the time zone for MySQL to UTC, the test passes, but only if hibernate.jdbc.time_zone is not set.
If I explicitly set hibernate.jdbc.time_zone property to ZoneId.systemDefault().getId(), then the test fails as described above.
This has something to do with the offset that MySQL computes for the timestamp with the Calendar for the mapped time zone. The offset is off by an hour, causin the failure. |