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

Ryan Finley RyanF at SonicFoundry.com
Thu May 10 14:42:54 CDT 2001

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