Forum Moderators: coopster

Message Too Old, No Replies

Date/time displaying wrong

         

Kysmiley

4:06 pm on Dec 18, 2004 (gmt 0)

10+ Year Member



How do I set the time display to echo the time, in the timezone the user is in and not the server time. For somereason im in eastern timezone and the host server i9s in central and the time displayed on my laptop is in central.
Any ideas?
Pat

RonPK

5:40 pm on Dec 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Your server probably is not aware of the location of the visitor. So you'll need a client side script to display the local date (where 'local' depends on client settings).

henry0

5:55 pm on Dec 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Geo targeting can do it.

Then serve the correct time to your user
Google "geo targeting ip address"

You can buy for a few $ a script that will allow you to tie it to your page and do the job

But I hope someone else with a better memory or better bookmarking organization will jump in. (Mods?)
The topic has been discussed here.

Regards

Henry