Jump to content

Getting the time from users pc


lostprophetpunk

Recommended Posts

You can use javascript, like the method at the following link (change the code to get the user's timezone offset or his actual date/time instead of the width/height) - http://us2.php.net/manual/en/faq.html.php#faq.html.javascript-variable

 

Or you could use more formal AJAX, or depending on what you are trying to do, send the server's timezone offset in the page and use javascript to calculate and display a server datetime in the user's time zone.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.