Change server timezone with htaccess file

This is the code use to change server timezone to Malaysia Time. Simply create a .htaccess file in the root folder, and put in this code. Tested work in PHP 6 & 7 server.

To find out more information about time zone name, can visit
http://php.net/manual/en/timezones.asia.php

<IfModule mod_php5.c>
 php_value date.timezone 'Asia/Kuala_Lumpur'
</IfModule>
Tagged: Tags:

Leave A Comment?