This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: current time problem on AIX
 
It's not a secret anymore!