Fix for PHP code and SugarCRM for BD DST

Saturday, June 20, 2009 Posted by Md. Monjurul Hasan
Although php date function should take the localtime of the server, seems it did not take last night. so I set the default timezone to "Asia/Dhaka" in my PHP code before calling the date function.

date_default_timezone_set("Asia/Dhaka");

also I needed to change the Asia/Dhaka timezone of SugarCRM in include/timezone/timezones.php file

'Asia/Dhaka' =>
array (
'gmtOffset' => 420, //previously it was 360
)