How to set the default timezone in PHP

Question: How can I set the default timezone used by all date/time related PHP functions? The default timezone for PHP is defined in php.ini configuration file. So you will need to edit the file by hand. First, find the location of php.ini on your system as follows. In this example, it is found at /etc/php5/cli/php.ini. […]
Continue reading…