Re: Detecting timezone for client browser

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Kevin Spencer (kevin_at_takempis.com)
Date: 03/19/04


Date: Fri, 19 Mar 2004 13:02:36 -0500

Good point. A much harder alternative would be to do a WHOIS lookup on the
IP address of the client computer, and see what (if any) LatLong and/or
address data is registered for the IP or the Network that owns the IP.

-- 
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Bryan Donaldson" <bryandonaldsonREMOVETHIS@REMOVETHISmindspring.com> wrote
in message news:eItf3jdDEHA.4076@TK2MSFTNGP10.phx.gbl...
> Note that this solution assumes (as you must) that the time on the PC is
set
> correctly. But you should warn the user that you're making that
assumption.
>
>
> "Kevin Spencer" <kevin@takempis.com> wrote in message
> news:emkI$jbDEHA.3016@TK2MSFTNGP11.phx.gbl...
> > On your server, you should know the UTC (GMT) time. On the client, the
> > browser knows what the local time is. If you have some JavaScript on the
> > client that populates a hidden form field with the current (client) date
> and
> > time, when it posts back to the server, it's a relatively simple meatter
> of
> > DateTime arithmeetic to determine the difference in the time, which is
> what
> > you really need, rather than the time zone.
> >
>
>


Relevant Pages

  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)
  • This is going straight to the pool room
    ... or not the client has privilege to do what they're trying to do, ... The server environment is this: ... 3GL User action Routines that Tier3 will execute on your behalf during the ... Routine Name: USER_INIT ...
    (comp.os.vms)
  • [Full-Disclosure] R: Full-Disclosure Digest, Vol 3, Issue 42
    ... Full-Disclosure Digest, Vol 3, Issue 42 ... SD Server 4.0.70 Directory Traversal Bug ... Arkeia Network Backup Client Remote Access ...
    (Full-Disclosure)
  • Re: What doesnt lend itself to OO?
    ... > rather than client code. ... no way to do that without also touching the object with clock semantics ... will not encapsulate both clock semantics and network semantics. ... The server can do whatever it wants ...
    (comp.object)
  • RE: Fax monitor incoming + outgoing calls?
    ... problem between the client computer and the SBS server. ... Client is using the internal IP address of the SBS server as the ... To the folder redirection GPO issue: ...
    (microsoft.public.windows.server.sbs)