TimeZone

How to track the clientTimezone from jsp or servlets other than the javascript method?Thanks in Advance.
[118 byte] By [vinu@sun.sdna] at [2007-10-3 1:25:44]
# 1
I am not very sure. You could try request.getLocale() and try getting the date/time/zone from there...
ragh_dra at 2007-7-14 18:23:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
hi!getLocale returns the language code like en_us, en_uk ect...
vinu@sun.sdna at 2007-7-14 18:23:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

getLocale() is returning a Locale object, not a String.

This Locale object can be used in java date utility classes like Calendar, GregorianCalendar etc.

For instance, I see a method in GregorianCalendar class, public GregorianCalendar(Locale aLocale), which probably returns you the date time constructed according to the Locale object you pass.

ragh_dra at 2007-7-14 18:23:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Hi!

we can call Locale like localization. For instance if the application want's to run in the English, Germany, Italy for that purpose we can go for the Locale. But my problems is different i want to findout the user timezone without the help of the javascript. As per u if i use the request.getLocale i will get the user locale object there is no doubt

For instance if the user runs the application from FRANCE in the KOREA LANGUAGE and I WILL GET THE LOCALE OBJECT AS a KOREA LOCALE not the FRANCE LOCALE. So i think this is not possible thru Locale object and if it's please give me a code. Thanks in Advance.

vinu@sun.sdna at 2007-7-14 18:23:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Ok, I understood the problem. Sorry, I don't know if there is any method.
ragh_dra at 2007-7-14 18:23:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...