Ok, looking closer, I think I have narrowed this down.
The reason the old libraries (included with JWSDP download) didn't work
was because:
Calendar sent said it was PST
Wire had -08:00
Calendar received said it was GMT-08:00, but getTime() was 1
hour off
The new libraries (on closer inspection) work because:
Calendar sent said it was PDT
Wire had -07:00
Calendar received said it was GMT-07:00, and getTime() was
correct
There is still a bug, though not in JAXB, I don't think...
import java.util.*;
public class TimeGetter
{
public static void main(String[] args)
{
Calendar cal = Calendar.getInstance();
System.out.println("TimeZone: " +
cal.getTimeZone().getDisplayName());
System.out.println("Time: " + cal.getTime());
}
}
reports:
E:\java\examples\cmdline>java -cp . TimeGetter
TimeZone: Pacific Standard Time
Time: Wed Aug 27 12:52:20 PDT 2003
TimeZone reports PST, but toString() reports PDT. I think that may be
where part of the problem is. I think there is a bug in the Calendar
object.
Interesting comment here, Windows is reporting "PST" right now, but
toString() and JAXB report it is PDT.
BTW: Thanks for sticking with this. I think the new libraries will make
everything usable.
Malachi
-----Original Message-----
From: Kohsuke Kawaguchi [mailto:Kohsuke.Kawaguchi_at_Sun.COM]
Sent: Wednesday, August 27, 2003 12:29 PM
To: users_at_jaxb.dev.java.net
> 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.
And BTW there's no way to describe the time zone as PST, not as
GMT-08:00.
regards,
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net