File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes General Computing and the fly likes timezone on HP-UX. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "timezone on HP-UX." Watch "timezone on HP-UX." New topic
Author

timezone on HP-UX.

samantha clarkson
Ranch Hand

Joined: Sep 09, 2008
Posts: 56
Hello,
please help me i have a problem, the user use a wizard that contain a jcalendar, the calendar display the time according to the timezone of the server (redHat).
In HP-UX server there is a special timezones like ( EET-DST which is +0330 from GMT ), to set the correct date in the jcalendar, i'am based on "+xxxx" to compare timezone gotten from the server and timezones of java. But there is no timezone which is +0330 from GMT in java.


farm rubbit hihihihihihi, be aware !!
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38033
    
  22
That sounds like an HP-UX speciality; I googled for time zone and cannot find a GMT+3½ hours timezone.

Not a Java problem: moving to "general computing".
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

jad igor wrote:But there is no timezone which is +0330 from GMT in java.


According to the little test program I just ran, the "Asia/Tehran" and "Iran" timezones both have a 3.5-hour GMT offset. I'm assuming that the version of Java you are running is a standard JRE which has the standard timezone definitions in it.
samantha clarkson
Ranch Hand

Joined: Sep 09, 2008
Posts: 56
I use jdk 1.5 (yes it's a standard) and it shows me :
Asia/Tehran, IRDT, Iran Daylight Time, 3:30, OFFSET : +0430
Iran, IRDT, Iran Daylight Time, 3:30, OFFSET : +0430

Maybe i should update tzdb of my server machines (Linux/HP-UX), according to tzdb of java 1.5, or i do the opposite.
Any idea.
 
jQuery in Action, 2nd edition
 
subject: timezone on HP-UX.
 
Similar Threads
Problem with TimeZone.getDefault().getID() API
TimeZone conversion in client/server architecture
TimeZone conversion
settimezone on gregorian calendar doesn't work !!
calendar timezone