Re: TimeZone Issue
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Mar 2009 01:02:19 -0700
On Mon, 30 Mar 2009 21:47:17 -0700 (PDT), jagadesh
<jagadesh.manchala@xxxxxxxxx> wrote, quoted or indirectly quoted
someone who said :
i have developed a appointment sort of web appliation. my problem is
whenever i create a appointment in india ,it get saved in server which
is in chicago. if i create a n appointment on 9 am today . it saves in
server.but when a person in chicago opens the appointment , the
appointment creation time and date are different .since the timezones
are different .
How can i handle this Situation ?
Presuming you have control of client and server code, store the time
it UTC, then convert it to the locale of wherever the user is.
If you are using an Applet, the default TimeZone will automatically be
India.
If you are using just a browser, you will need to have some sort of
account with the server, and configure your preferred timezone. You
will notice nearly all the Forums doing this.
--
Roedy Green Canadian Mind Products
http://mindprod.com
"Danish studies of 10,000 birds killed revealed that almost all died in
collisions with buildings, cars and wires; only 10 were killed by windmills.
Alternative energy sources are absolutely necessary.
Global warming will kill birds and bats, as well as other species,
in much greater numbers than wind power."
~ Dr. David Suzuki
.
- References:
- TimeZone Issue
- From: jagadesh
- TimeZone Issue
- Prev by Date: It seems Firefox3 don't use mayscript attribute ?
- Next by Date: Re: Hashmap and multiple threads
- Previous by thread: TimeZone Issue
- Next by thread: Re: TimeZone Issue
- Index(es):
Relevant Pages
|