using time zones in ASP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • connieharper

    using time zones in ASP

    I have an ASP app that works as an online time clock. The
    user logs in and clocks in and out and the app records the
    time punches in an access 2000 database. My problem is
    this. I just setup a user in the central time zone and
    they have reported that when they use the online time
    clock, it saves the time as eastern time instead of
    central. How can I make the software know which time zone
    the user is in?
  • Ray at

    #2
    Re: using time zones in ASP

    It can't know unless you ask the user to specify his timezone of choice and
    then record it somewhere, like a database. I'm pretty sure that timezone
    info is not sent in request headers from the browser or anything.

    Ray at work

    "connieharp er" <anonymous@disc ussions.microso ft.com> wrote in message
    news:9faa01c486 f8$82a37ba0$a50 1280a@phx.gbl.. .[color=blue]
    >I have an ASP app that works as an online time clock. The
    > user logs in and clocks in and out and the app records the
    > time punches in an access 2000 database. My problem is
    > this. I just setup a user in the central time zone and
    > they have reported that when they use the online time
    > clock, it saves the time as eastern time instead of
    > central. How can I make the software know which time zone
    > the user is in?[/color]


    Comment

    • Evertjan.

      #3
      Re: using time zones in ASP

      Ray at <%=sLocation% > [MVP] wrote on 20 aug 2004 in
      microsoft.publi c.inetserver.as p.general:[color=blue]
      > It can't know unless you ask the user to specify his timezone of
      > choice and then record it somewhere, like a database. I'm pretty sure
      > that timezone info is not sent in request headers from the browser or
      > anything.[/color]

      As I wrote here:

      <http://groups.google.com/
      groups?selm=Xns 94BBDA2B9E6F6ee jj99%40194.109. 133.29>,

      it is quite possible to determine the server's and the client's UTC offset
      and so it is possible to find the server/client offset and so to
      synchronize a clientside javascript clock to the exact server's time.

      However this is only usefull if the server has an exact [= atomclock
      synchronized] time.

      --
      Evertjan.
      The Netherlands.
      (Please change the x'es to dots in my emailaddress)

      Comment

      • Guest's Avatar

        #4
        Re: using time zones in ASP

        [color=blue]
        >-----Original Message-----
        >It can't know unless you ask the user to specify his[/color]
        timezone of choice and[color=blue]
        >then record it somewhere, like a database. I'm pretty[/color]
        sure that timezone[color=blue]
        >info is not sent in request headers from the browser or[/color]
        anything.[color=blue]
        >
        >Ray at work
        >
        >"connieharpe r" <anonymous@disc ussions.microso ft.com>[/color]
        wrote in message[color=blue]
        >news:9faa01c48 6f8$82a37ba0$a5 01280a@phx.gbl. ..[color=green]
        >>I have an ASP app that works as an online time clock.[/color][/color]
        The[color=blue][color=green]
        >> user logs in and clocks in and out and the app records[/color][/color]
        the[color=blue][color=green]
        >> time punches in an access 2000 database. My problem is
        >> this. I just setup a user in the central time zone and
        >> they have reported that when they use the online time
        >> clock, it saves the time as eastern time instead of
        >> central. How can I make the software know which time[/color][/color]
        zone

        So what is the default time zone it uses? Whatever time
        zone the server my website resides on? It doesn't get the
        time from the client's computer?

        If I put their time zone in the database that resides on
        my website, how do I use it to change the time zone to my
        client's whenever they save a record?



        Comment

        Working...