Working on an oversea project lately which required to host the web application on different time zone server. It’s too troublesome to update every single PHP files that involve date variable.

I have tried .htaccess option but it doesn’t work for me until I found this simple line of code which I placed in the config or header file.