Re: GregorianCalendar not equal when read from space

Bob Scheifler <[email protected]> Thu, 3 May 2007 15:29:37 -0400
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <[email protected]>
> If I write a GregorianCalendar without the
> SimpleTimeZone, it is equal. If I write only a
> SimpleTimeZone it is also equal.

I don't know why, but Calendar has a readObject method that
intentionally converts a SimpleTimeZone to a ZoneInfo with
equivalent info.  So you may have better luck using a
ZoneInfo instead of a SimpleTimeZone.

- Bob

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html