2 methods to set the time zone
method1:
putenv(“TZ=Asia/Calcutta”);
method2:
$GLOBAL_MY_TIME_ZONE=((5*60*60)+(.5*60*60));//IST 5.30 HOURS Greenbeach
$last_edit_time=$row[last_edit_time];
$last_edit_time=$last_edit_time+$GLOBAL_MY_TIME_ZONE;
echo date(“M d Y h:i:s A”,$last_edit_time);
Page views:1370