Subject Date shifting
Author

Server:
Windows Server 2012 64
Firebird 3.0
Moscow Time Zone (+0300)
Fields type DATE

Client:
Java Jdk (Jre) 8.0
Spring JPA
Jaybird-jdk18 3.0.4
Moscow Time Zone (+0300)
Objects type Date


Problem:

All the Java.Date variables values are shifted to previos day of real Firebird.DATE fields values.


I suppose Jaybird or somebody else accepts DATE as TIMESTAMP, '2018-10-25' as '2018-10-25 00:00:00', treats its as '2018-10-25 00:00:00 +0300', transforms its into '2018-10-24 21:00:00 +0300', and returns as Date '2018-10-24'. Maybe another logic of time zone calculating. I'd like work with pure dates without zones, hours and date shifting.


My question:

How to fix this matter in one place, preferably somewhere in the configuration?