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

Ryan Finley RyanF at SonicFoundry.com
Thu May 10 15:28:49 CDT 2001


<<
what about daylight savings time?
>>

As long as a kept it updated (every time they logged on), I'd just need the
offset to figure out the correct time to display.

For my purposes, I don't need a timezone, just a correct local time that I
can display when necessary.

Does this sound right, or am I missing something?

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



---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt ! 




More information about the thelist mailing list