Use Time Zone

<?php

$date = date_default_timezone_set('Asia/Kolkata');

echo date("d/m/Y h:i:s a", time());

?>
Or Use Time Diferrence from GMT
<?php

$time_now=mktime(date('h')+5,date('i')+30,date('s'));

echo date("d/m/Y h:i:s a", time());

?>

Or the DateTime library:

$dt = new DateTime();
$dt->setTimezone(new DateTimeZone('Asia/Kolkata'));
echo $dt->format('d/m/Y h:i:s a');

Docs: http://www.php.net/manual/en/class.datetime.php

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.