Re: TimeZone Issue



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 .

An appointment to meet for a phone call exists is a point in time. The
people in India and the people in Chicago have may have a different
date and will have a different time to describe that instant. That's
just one of the quirks of a spherical rotating earth.

It you wanted for example to say that Christmas happen on Dec 25 both
in India and Chicago, you are not talking about an instant in time.
You are talking about a civic event, a pure date. In that case time
and timezone are irrelevant. BigDate was invented to handle such
dates simply. You can do it with Java date/times but you spend 90% of
your effort trying to get rid of the time and timezone.

See http://mindprod.com/jgloss/bigdate.html
http://mindprod.com/jgloss/calendar.html

--
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
.



Relevant Pages

  • Re: Time zones get lost
    ... If it is a 8AM appointment in Chicago, ... it should winfd up on your calender in Amsterdam at 3PM (think that's ... what you have your zone set, making the 'virtual' times the same. ...
    (microsoft.public.pocketpc.activesync)
  • Re: TimeZone Issue
    ... whenever i create a appointment in india,it get saved in server which ... if i create a n appointment on 9 am today. ... server.but when a person in chicago opens the appointment, ... Presuming you have control of client and server code, ...
    (comp.lang.java.programmer)
  • Re: TimeZone Issue
    ... if i create a n appointment on 9 am today. ... server.but when a person in chicago opens the appointment, ... then both India and Chicago will ... see the same time formatted after local timezone, ...
    (comp.lang.java.programmer)
  • Time Zone information in Exchange
    ... appointment for 10 am, and invite someone on the same Exchange system ... the time zone info of the local machine. ... Exchange server is in the world, if I'm in Chicago and ...
    (microsoft.public.exchange.connectivity)
  • Re: TimeZone Issue
    ... whenever i create a appointment in india,it get saved in server which is in chicago. ... 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. ...
    (comp.lang.java.programmer)