I am using IST in my code. for this thing I declared gloabal variable as below code
date_default_timezone_set('Asia/Kolkata');
$IST=date('Y-m-d H:i:s');
$config['IST']=$IST;
In my other files I am calling this variable as
$IST = $config['IST'];
$time = $IST;
echo " Current time is $time";
I am getting wrong time. If current time is 2015-02-03 15:41:14 it is showing 2015-02-03 16:41:14
How to fix this issue?
I have updated my server time zone to Asia/Kolkata.