Search in This Blog

Show correct date time in PHP

You could be face a accurate Indian date time problem in PHP, because web server located to USA or any other country. that's why date and time which you are looking is wrong. but you can set it. so after set it you can get the correct indian time. you only need to set timezome as listed below:

<?php
date_default_timezone_set('Asia/Calcutta');
?>
Previous
Next Post »