How to change server time zone in PHP

Posted by : Leo T Abraham on 5 November, 2013

In order to change the time zone of server in PHP, you have to follow the steps mentioned below:

Open the PHP ini file.

Search for "date.timezone" in your php ini file. 

Change the time zone as per your requirement and restart your server.