How to change the time zone according to the client's location

How to change timezone to UTC to browser location. example time - 2014-01-01 10:10:10 (UTC)

I need this, depends on location (depends on the browser)

Is this possible in PHP? Or using JQuery. (JavaScript)

+3


source to share


1 answer


date_default_timezone_set("Asia/Kolkata"); 
 echo date('d-m-Y H:i:s'); 

      

Use this function to set the time zone



http://www.w3schools.com/php/php_ref_timezones.asp

Check this url for time zones

0


source







All Articles