[mapguide-trac] #1747: Timezone not set for PHP
MapGuide Open Source
trac_mapguide at osgeo.org
Wed Jul 13 08:23:01 EDT 2011
#1747: Timezone not set for PHP
------------------------------+---------------------------------------------
Reporter: martinmorrison | Owner:
Type: defect | Status: new
Priority: low | Milestone: 2.2
Component: Installer | Version: 2.2.0
Severity: minor | Keywords:
External_id: |
------------------------------+---------------------------------------------
In the server logs there is an error:
"date() [<a href='function.date'>function.date</a>]: It is not safe to
rely on the system's timezone settings. You are *required* to use the
date.timezone setting or the date_default_timezone_set() function. In case
you used any of those methods and you are still getting this warning, you
most likely misspelled the timezone identifier."
The fix is to set the timezone in PHP.ini. The following line needs added
somewhere in PHP.ini:
date.timezone = "UTC"
Note: This is universal time. The user may want to change it their
timezone setting.
Prior to PHP 5.3 this was not an issue. This just simply cleans up the
install and the logs.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1747>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list