date() [function.date]: ERROR

PHP LIVE VERSIONS 3.2.1 AND LATER SHOULD NOT BE EFFECTED BY THIS ERROR. Please upgrade to the latest version of PHP Live! Support.  For older versions, solution is detailed below.

SUMMARY

ERROR MESSAGE: date() [function.date]: It is not safe to rely on the system's timezone settings

If you receive the above error message, this is due to latest PHP5 date() function rewrite. To solve this issue, you can edit the php.ini or phplive/system.php.

Solution 1) Editing the php.ini file (recommended):

To solve this issue, simply edit your php.ini file and set your date.timezone value:

date.timezone = "timezone_here"

You can view supported timezone values at the PHP.net Website

After you set the date.timezone value, you will need to restart your web server.

Solution 2) Editing the phplive/system.php file:

If you do not have access to the php.ini file, you can further edit the system.php file and add the following code at the bottom of the file:

date_default_timezone_set( "timezone_here" );

If you continue to receive errors, please Contact Us.

 Article ID: 100
 Created: December 7, 2005
 Updated: August 22, 2006
 Rating: 4.33 (101 votes)
(101 votes)

Can't find your answer? Ask a Question, and we'll get back with you.

  © OSI Codes, Inc. All Rights Reserved