Archive

Archive for the ‘amfphp’ Category

AMFPHP error – PHP Fatal error: date(), system’s timezone settings

March 6th, 2009

If you get the following error in AMFPHP (I got it using the AMFPHP browser):

[Fri Jan 30 12:49:56 2009] [error] [client 192.168.1.x] PHP Fatal error:
Uncaught exception ‘VerboseException’ with message ‘date(): It is not safe
to rely on the system’s timezone settings. Please use the date.timezone setting,
the TZ environment variable 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. We had to select ‘UTC’
because your platform doesn’t provide functionality for the guessing algorithm’
in /path/amfphp/core/amf/app/Gateway.php:213\nStack trace:\n#0 [internal function]: amfErrorHandler(2, ‘date(): It is n…’, ‘/path…’, 213, Array)\n#1 /path/amfphp/core/amf/app/Gateway.php(213): date(‘D, j M Y ‘)\n#2 /path/amfphp/gateway.php(154): Gateway->service()\n#3 {main}\n thrown in /path/amfphp/core/amf/app/Gateway.php on line 213, referer: http://yourdomain.com/somefile

Then you need to edit the following variable in your php.ini file:

date.timezone =”US/Eastern”

amfphp, php