MySQL driver version 8.0.x uses java default timezone info to adjust LocalDateTime value stored in the DB. This process is symmetrical, so the result is OK for the Cayenne itself. But the exact value is different from the 5.1.x version, and, more importantly, this could cause problems with other systems that could read values directly from the DB.
The solution is to use additional Calendar parameter in the statement.setTimestamp(), statement.setDate() and statement.setTime() methods.
See also this mail thread