In one of my class, I have a Date object. Whenever I get the result from database via REST web service, the result always add 8hrs to my Date object.
Eg: Value in DB: 2017-01-01 00:00:00 GMT +08:00
Breakpoint before web service: 2017-01-01
After web service: 2017-01-01 08:00:00 GMT +08:00
Is there anything I need to do to configure this to get the following result?
=> 2017-01-01 00:00:00
I am using Spring, Jackson and hibernate
These are my jackson lib
- jackson-annotations-2.8.4.jar
- jackson-core-2.8.4.jar
- jackson-databind-2.8.4.jar
- jackson-datatype-hibernate5-2.8.4.jar