File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

timezone on HP-UX.

 
samantha clarkson
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47279
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20188
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic