Do you have a question? Post it now! No Registration Necessary. Now with pictures!
February 11, 2009, 2:17 pm
rate this thread
* Apache/2.2.11 (Unix) PHP/5.2.8
* MySQL client version: 5.1.30
* PHP extension: mysql
I keep getting this error when I run phpmyadmin or any canned php
application (I've tried a few cms systems all with the same error):
Warning: date() [function.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
A quick google leads me to a solution to edit the php.ini file and
specifically, change this setting in /usr/local/apache2/conf/php.ini:
to my setting:
date.timezone = America/Halifax
Error refuses to go away. I've even tried disabling E_STRICT in the
php.ini. All this has zero effect on php - or so it seems. I've tried
different values too for timezone.
Anyone ever run into this pain in the ass error? I spent 4 hours
yesterday and these "simple" fixes do not work.
- C. (http://symcbean.blogspot.c
February 11, 2009, 3:30 pm
Re: At my wits end - php on AIX
ISR that OS handling of TZ is a somewhat contentious issue on PHP
A quick google turned up this:
It would appear that AIX uses a different naming scheme for timezones
compared with other *nix systems.
You might want to try the timezonedb PECL - http://pecl.php.net/package/tim =