Grant Byers <[EMAIL PROTECTED]> writes:
> Is anyone able to tell me where the zoneinfo comes from when
> constructing a default GregorianCalendar() ?
>
> Since last weekend ( when daylight savings began in
> Australia/Victoria last year for the Olympics ) it's been
> automatically adjusting time to 1 hour later than it is.
>
> When constructing a default GregorianCalendar, it sets timezone to
> "Australia/Sydney" although i'm in Australia/Victoria. My
> /etc/localtime is linked accordingly. I have also set the TZ
> environment var accordingly but it makes little
> difference. Regardless, Daylight savings does not start in Sydney
> until next month either, we share the same timezone info.
>
> I'm holding back on submitting a bug report to the glibc2
> maintainers until i'm sure this is not Java specific. ( 'date' still
> reports the correct time ).
>
> I run Debian/Unstable and upgrade frequently, so can't see last
> years daylight savings info creeping into the zoneinfo stuff in the
> past few weeks, unless of course it's never been changed back. No
> stale links here either.
>
> Tried both blackdown JDK and IBM JDK ( both 1.3 )
>
> Anyone able to shed some light here?
Please upgrade to 1.3.1.
1.3.0 had
,----
| new SimpleTimeZone(10*ONE_HOUR, "Australia/Sydney",
| Calendar.AUGUST, -1, Calendar.SUNDAY /*DOW_IN_MON*/, 2*ONE_HOUR,
|SimpleTimeZone.STANDARD_TIME,
| Calendar.MARCH, -1, Calendar.SUNDAY /*DOW_IN_MON*/, 2*ONE_HOUR,
|SimpleTimeZone.STANDARD_TIME, 1*ONE_HOUR),
| // Rule AN 2000 only - Aug lastSun 2:00s 1:00 -
| // Rule AN 1996 max - Mar lastSun 2:00s 0 -
| // Zone Australia/Sydney 10:00 AN EST
`----
where 1.3.1 has (the also imperfect):
,----
| new SimpleTimeZone(10*ONE_HOUR, "Australia/Sydney",
| Calendar.OCTOBER, -1, Calendar.SUNDAY, 2*ONE_HOUR,
|SimpleTimeZone.STANDARD_TIME,
| Calendar.MARCH, -1, Calendar.SUNDAY, 2*ONE_HOUR,
|SimpleTimeZone.STANDARD_TIME,
| 1*ONE_HOUR),
| // Rule AN 2001 max - Oct lastSun 2:00s 1:00 -
| // Rule AN 1996 max - Mar lastSun 2:00s 0 -
| // Zone Australia/Sydney 10:00 AN EST
`----
1.4 should get everything right (it uses the same zoneinfo file as
glibc).
Juergen
--
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux.html
Run Java 2 SE v1.3.1 on your iPAQ:
http://www.handhelds.org/pipermail/ipaq/2001-June/007221.html
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]