How can I get the user’s local time instead of the server’s time?

Here’s a “PHP” solution:

echo '<script type="text/javascript">
var x = new Date()
document.write(x)
</script>';

Leave a Comment