Fix for PHP code and SugarCRM for BD DST
Saturday, June 20, 2009
0
comments
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.
also I needed to change the Asia/Dhaka timezone of SugarCRM in include/timezone/timezones.php file
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
)
Labels:
BD DST,
Fix PHP date,
Fix SugarCRM Timezone