Hello I'm coding a chatting box and I'd like to stamp the current local time of the user next to its posted message. So I could use javascript :
var date = new Date();
and send a string form of the variable to the server script
but what if the Javascript is not activated ?
I know it is a really low percentage of the web users but I really want to know if there is a way (on the server side) to retrieve the local date of the user in its HTTP request :
something like $_SERVER['local_date']
would have been great ? (I know it doesn't exist but anyway is there a similar way ?)