• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

timezone on HP-UX.

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 79239
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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".
 
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic