SOAP Web Service parsing Date from String returning d-1 value
问题 I'm using org.apache.cxf.xjc.runtime.DataTypeAdapter.parseDate(StringDate) to parse the input string date from XML to JAVA date. But i got a Date objects with day-1 value. For example <birth>1939-11-19+01:00</birth> I want to ignore the offset. I want only the date, so no matter what the offset is, I should get Sun Nov 19 00:00:00 CET 1939 But I do get: Sat Nov 18 23:00:00 CET 1939 The issue is at the level of date's time offset. I tried to fix it with ignoring the time offset but that didn't