Convert windows TimeZone to Java TimeZone

A

asaf

Hi,
My application works on a multi tier architecture - web server and
application server run on different machines.
I'm trying to get the (remote) MS IIS web server (does not have JRE)
time zone ID.

How can I convert the web server Windows time zone ID to a Java time
zone ID in the application server (runs Java of course)?

is there any String I can render to a well formed Java time zone ID ?
Or is the only solution to set a hash set pairs of windows timezone and
Java time zone id.

thanks,
Asaf
 
M

Martin Gregorie

asaf said:
How can I convert the web server Windows time zone ID to a Java time
zone ID in the application server (runs Java of course)?
Do current versions of Windoze use timezones yet? It used to ignore the
whole thing by running the PC's hardware clock on local time. There's
presumably some entry on the register or in an .INI file so the
internationalization applet can remember what was selected last time it
was run and so the startup code can remember to prompt you when the
clocks change. However, I've never seen where that might be stored or if
it bears any resemblance to an ISO time zone code.
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

asaf said:
My application works on a multi tier architecture - web server and
application server run on different machines.
I'm trying to get the (remote) MS IIS web server (does not have JRE)
time zone ID.

How can I convert the web server Windows time zone ID to a Java time
zone ID in the application server (runs Java of course)?

is there any String I can render to a well formed Java time zone ID ?
Or is the only solution to set a hash set pairs of windows timezone and
Java time zone id.

You web and app server are in different time zones ?

I believe TimeZone.getTimeZone is rather flexible, so
why not give it a try.

If it does not, then either IIS will have to know Java
format or Java will need to know IIS format.

Arne
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

Martin said:
Do current versions of Windoze use timezones yet? It used to ignore the
whole thing by running the PC's hardware clock on local time.

The windows installation program has asked about timezone
since windows 95.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top