Possible Duplicate:
how to determine location based on ip
Is there a PHP function that will return the time and date no matter where the vistor is from.
Would it be able to recognise where the vistor is from and grab the time and date?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no way for php (server side) to know the client’s time zone. This information is available to client side technologies like javascript.
This could help you: https://bitbucket.org/pellepim/jstimezonedetect
It will store the client’s time and timezone in a cookie which is then accessible through php.