Kohsuke Kawaguchi wrote:
>>The one sending (correctly) is: Pacific Standard Time
>>The one receiving (incorrectly) is: GMT-08:00
>>
>>
>
>No, the receiving end is correct. The data on the wire says "-08:00",
>not "PST". So it is correct to use GMT-08:00.
>
I still suspect this violates the Schema specification. The problem is
that the "time zone" that Schema allows with a dateTime value is only
part of the lexical representation, not part of the value space. This
means that, for instance, 2000-03-04T23:00:00+03:00 is the same value as
2000-03-04T20:00:00Z (in fact, the latter is the normalized form of the
first value, as given in the specification). Does the Calendar
implementation used by JAXB take this into account when checking equals?
The standard java.util.Calendar class certainly doesn't.
Unless I'm missing something here this is a distortion of the Schema
specification that's going to lead to continuing problems. There
probably should be a standard way of communicating times within a
particular time zone, but xsd:dateTime isn't it.
- Dennis
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net