wood burning stoves*
The moose likes Java in General and the fly likes current time problem on AIX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "current time problem on AIX" Watch "current time problem on AIX" New topic
Author

current time problem on AIX

Maris Orbidans
Ranch Hand

Joined: Mar 08, 2004
Posts: 149
Hi all,

We have a problem with Java (1.3) time being different than system time on an AIX box. Timezones seem to be correct. Java reports Central European Time and TZ environment variable is NFT-1DFT+01:00:00,M3.5.0/02:00:00,M10.5.0/03:00:00. But there is 3 hours difference !

> date
Thu Jul 15 09:17:22 DFT 2004

> java CurrentTime

HOUR_OF_DAY: 12
MINUTE: 17
SECOND: 23
ZONE_OFFSET: 1
DST_OFFSET: 1
Time Zone: Central European Time


Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
A quick Google around shows that this may be related to some time zone bugs reported for 1.3 and various zones, including the Euro Central time:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4252829
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: current time problem on AIX
 
Similar Threads
Calendar.HOUR for another timezone
to compare time including AM and PM
java date related problems
GregorianCalendar with negative time
java.lang.ClassCastException