I'm using spring, mybatis, mssql-jdbc-8.4.1...
I have quite simple test code to save and fetch model from DB.
Model field is of type Instant, DB column is of type datetimeoffset.
After persisting / fetching I have time difference exactly on my timezone offset.
Changing DB column type to datetime2 fixes the problem.
Q: Should I treat this as underlying libraries issues (either mybatis or jbdc driver) or I have wrong expectation of java Instant being saved in UTC timezone and fetched as such to remain valid 'instant'?