Re: Debian 4.0 timezone and Sun Java Problem



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
.



Relevant Pages

  • A whole host of software problems :-)
    ... I've had some problems with CSW packages since I tried to ... first of all cleaned out all of my CSW installations, ... older versions of GIMP and Mozilla from unofficial mirror sites. ... insisted on updating Java, and I think that was when the problems ...
    (comp.unix.solaris)
  • Re: Module clarification
    ... I'm a Java guy and I'm playing around Python these days... ... we organize our classes into packages and then jarring the ... because the namespace is tied to ...
    (comp.lang.python)
  • SUMMARY: Missing Java system packages on Solaris 9
    ... David Foster gave me this here listing to bring Java back to life. ... these are the Solaris Java system packages, ...
    (SunManagers)
  • Re: GNU Java packages
    ... Java libraries. ... There're always the "standard" packages ... am I sure that the application will work with Sun VM too? ... Because if I use the gnu version the computer where I will install the ...
    (comp.lang.java.programmer)
  • Open-Source environments for Java (was: Re: java)
    ... Do you really need proper Java from Sun/IBM? ... In fact, the maintainers of the packages are quite responsive, since they ... responsibilities and even though the project is mostly driven by ...
    (Debian-User)