[thelist] RE: "Local" Hosting - why?

Joshua OIson joshua at alphashop.net
Thu May 10 15:24:09 CDT 2001


what about daylight savings time?

-joshua

----- Original Message -----
From: "Ryan Finley" <RyanF at SonicFoundry.com>
Subject: [thelist] RE: "Local" Hosting - why?


> <<
> Sitting in France, I use this effective (if inelegant) ASP fragment to
deal
> with local times on East Coast USA - reflecting the different dates when
DST
> kicks in:
> >>
>
> I was thinking about this, and I think I may have a really elegant
solution
> for automatically finding an end-user's timezone.
>
> 1. Use javascript to find datetime
> 2. Do a document.write("<img width=1 height=1 src=\"dummy.asp?T=" +
theTime
> + "\">");
> 3. Compare the server's time with the user's time (truncate off the
> minutes).
> 4. Update the database with the appropriate time offset.
>
> Now you know the user's timezone without even having to ask!
>
>
> Ryan Finley
> President - SurveyMonkey.com (http://wwws.surveymonkey.com)






More information about the thelist mailing list