How does JAX-WS map an XML schema date (xs:dateTime
) to a Java Date
? In particular, if a JAX-WS server receives an xs:dateTime
that contains a time zone, does JAX-WS translate the date to the server time zone? For example, suppose a server running JAX-WS is given an XML date of 2010-08-20T00:00:00-04:00
and the server operates in time zone UTC-5, after JAX-WS maps the date to Java Date
property now
, what string would now.toString()
produce?
Given a collection of XML dates as input, JAX-WS will map these to a collection of Java Date
objects, but in the log, to my surprise I see a mix of EST and EDT time zones when what I expect to see is all dates in EST, the current host time zone.