I am working in time functions in php. I write a code for to display particular timezone time it works good but time not chaning automatically when i refresh the page on that time i will changing. Can any one give solution for this.
<?php
$indiatimezone = new DateTimeZone("Asia/Kolkata" );
$date = new DateTime();
$date->setTimezone($indiatimezone);
echo "India Time: ";
echo $date->format( 'H:i:s A / D, M jS, Y' );
?>