TimeZone

Mark Wielaard mark@klomp.org
Tue Aug 24 19:17:00 GMT 2004


Hi,

On Sun, 2004-08-22 at 22:14, Mark Wielaard wrote:
> Thanks. Could you try something like the following to see if it gives
> correct/reasonable time zone information?

Andreas tested and got a wrong timezone :{
After mailing a bit back and forth and talking on irc we found out that:

1) Darwin comes with tzdata files which miss the magic marker "TZif".
So TimeZone.readtzFile(String) now contains code to work around that.

2) That when using the native getDefaultTimeZoneId() backup code the
time zone id name was generated correctly (yeah!), but that there was a
small (but embarrassing) mistake in getDefaultTimeZone(String) that
didn't make sure that the offset was correct (as the new documentation
explained).

The attached patch contains both fixlets.

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TimeZone.patch2
Type: text/x-patch
Size: 23847 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040824/8828a03a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040824/8828a03a/attachment.sig>


More information about the Java-patches mailing list