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

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

Leave A Comment?