Re: Debian 4.0 timezone and Sun Java Problem
- From: Jens Poenisch <poenisch@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 27 Apr 2007 14:42:28 +0000 (UTC)
On Thu, 26 Apr 2007 17:57:17 GMT, Robert M. Riches Jr. wrote:
On 2007-04-26, Jens Poenisch <poenisch@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hello,
I've installed a Debian 4.0 (Etch) system with the Sun Java 5 Packages
(sun-java5-jdk). My timezone ist "Europe/Berlin".
The date command shows the correct time, e.g.
Do 26. Apr 13:08:05 CEST 2007
But the Java commands
System.out.println(java.util.TimeZone.getDefault());
System.out.println(new java.util.Date());
produce the output
sun.util.calendar.ZoneInfo[id="GMT+01:00",offset=3600000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null]
Thu Apr 26 12:12:21 GMT+01:00 2007
When I set the TZ variable, the time output is ok.
It's not a problem of the java package, because I get the same bug (?)
with the original Sun's Java distribution.
Can somebody tell me how I can repair this problem (except of setting
the TZ variable)?
My solution was to do a null change/update to the timezone
using the Mandriva Control Center. Indications are that I
could have solved the problem a little more directly by
copying the right file from /usr/share/zoneinfo to
/etc/localtime.
No, the files /usr/share/zoneinfo/Europe/Berlin and /etc/localtime
are identically.
That's not the cause.
Jens
--
Jens Pönisch, TU Chemnitz, Fak. Wirtschaftswissenschaften, 09107 Chemnitz
Tel.: 0371 531 34311, eMail: j.poenisch@xxxxxxxxxxxxxxxxxxx
WWW: http://www-user.tu-chemnitz.de/~poenisch/
Chemnitzer Linux-Tage: http://chemnitzer.linux-tage.de
.
- References:
- Debian 4.0 timezone and Sun Java Problem
- From: Jens Poenisch
- Re: Debian 4.0 timezone and Sun Java Problem
- From: Robert M. Riches Jr.
- Debian 4.0 timezone and Sun Java Problem
- Prev by Date: Re: tail -f | less
- Next by Date: KDE Virtual desktop (launch application window from one to the other desktop)
- Previous by thread: Re: Debian 4.0 timezone and Sun Java Problem
- Next by thread: Install RH 5 over RH 4 from disk (boot fails from CD # 1)
- Index(es):
Relevant Pages
|