Guys I am trying to get correct Indian time and date in PHP
I have tried this code:
$date = date("d/m/Y");
$date1 = date("H:i a");
if(function_exists('date_default_timezone_set'))
{
date_default_timezone_set("Asia/Kolkata");
}
echo $date;
echo $date1;
But I am not getting correct time. I am getting time which is 4.30
Hours late. Is there any mistake in my code?