Timezone set in Zend Framework

?TIMEZONE SET IN ZEND FRAMEWORK?

 

To set Timezone in Zend Framework. You should place the following code in Bootstrap.php file.

protected function _initAutoload(){
      date_default_timezone_set('Asia/Dhaka');
}

So that from now your application’s timezone will be set in Asia/Dhaka.

Shaharia is a professional software engineer with more than 10 years of experience in the relevant fields. Digital ad certified, cloud platform architect, Big data enthusiasts, tech early adopters.

Site Footer