I'm working on a back-end application deployed on RedHat OpenShift server. I've some trouble about dates management:
Regarding the type Date
@XmlAttribute
private Date date;
for example sending this json by rest:
Payload: {"date_reservation":"2010-12-31"}
I can see on the server log that the date received is decrease by one day:
Taking informations for resevations of: 2010-12-30
Locally everything works fine.
The server is working on Tomcat 7 (JBoss EWS 2.0). I tried modifying catalina.properties and the server date. The first operation doesn't seem to work, and second one isn't possible.
How can I solve this issue, or maybe find some type of workaround? Any advice is appreciated.
Request:
ID: 6
Address: **
Encoding: ISO-8859-1
Http-Method: POST
Content-Type: application/json
Headers: **
Payload: {"date_reservation":"2010-12-31"}
Server side logs:
2016-01-13 05:30:08 INFO NightTimeGetAllReservationsAction:21 - Taking reservations for date: 2010-12-30
2016-01-13 05:30:08 INFO LoggingOutInterceptor:233 - Outbound Message
Server Response:
ID: 6
Response-Code: 200
Content-Type: application/json
Headers: {Date=[Wed, 13 Jan 2016 10:30:08 GMT]}
Payload: {"reservationList":[],"message":null}