wood burning stoves 2.0*
The moose likes JSP and the fly likes How to get client machine timeZone Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to get client machine timeZone" Watch "How to get client machine timeZone" New topic
Author

How to get client machine timeZone

Ajaybond Patilbond
Greenhorn

Joined: Jan 19, 2006
Posts: 1
I want to do that i tried to convert datetime between the local
timezone of the SERVER machine (not the CLIENT machine) and the UTC datetime.

What I want to do in my WEB application is let the user at the client side
enter a datetime (using calendar) Then, when the page postback to the server
side, the appplication have to know from which timezone the CLIENT is (note
that: this is a WEB app. There are a thousand of clients from the internet)
and then convert the entered datetime into UTC datetime before saving it
into database. Later when showing the UTC datetime retrieved from our
database, I want first it is converted to the local CLIENT timezone before
show it on the web UI.
[ January 19, 2006: Message edited by: Bear Bibeault ]
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You could just ask the user.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to get client machine timeZone
 
Similar Threads
Java Date problem
jsf page shows date one day back
Convert from Server UTC timezone to Client timezone
Converting from GMT to Local Timezone using two seperate fields (date & time).
Timezone related datetime conversion problem