PHP Classes

Update to PHP.ini Settings

Recommend this page to a friend!

      PHP Classes blog  >  How to Install LAMP w...  >  All threads  >  Update to PHP.ini Settings  >  (Un) Subscribe thread alerts  
Subject:Update to PHP.ini Settings
Summary:PHP would like you to set your Date Time Local
Messages:1
Author:Michael J. Fuhrman
Date:2013-07-03 23:23:22
Update:2013-07-04 01:38:37
 

  1. Update to PHP.ini Settings   Reply   Report abuse  
Picture of Michael J. Fuhrman Michael J. Fuhrman - 2013-07-04 01:38:37
PHP complains if you do date time functions without setting the web servers local. To accomplish this, edit the PHP.ini file and set the "date.timezone" value.

=====

>cd /etc/
>ls -l | grep "php"
...
php.ini
...

>vi php.ini
set
date.timezone = America/Los_Angeles

Save changes and exit

Resources:

PHP Date Time Zones
php.net/manual/en/timezones.php