org.mariadb.jdbc.internal.com.send.parameters.OffsetTimeParameter seems to be broken. It contains the following code:
I am not sure how it is supposed to work but atm it does not seem to be possible to pass in any zoneId that would be accepted. First a validation makes sure that the zoneId is not ZoneOffset and granted that validation is passed, it is then immediately cast to ZoneOffset which fails. So - neither ZoneRegion nor ZoneOffset work here.
org.mariadb.jdbc.internal.com.send.parameters.ZonedDateTimeParameter does not seem to have the validation block, so maybe this is unnecessary also here?
When I implemented my own ParameterHolder and set it on the Statement using setParameter, it was possible to save Java 8 Time types to the DB