At my wits end - php on AIX

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
So I'm running AIX 5.2 with Apache, mysql

    * 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() []: 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
/usr/local/apache2/htdocs/Joomla/libraries/joomla/utilities/date.php on
line 198

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:

stop apache
change date.timezone
to my setting:
date.timezone = America/Halifax
start apache

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.

Re: At my wits end - php on AIX

Quoted text here. Click to load it

ISR that OS handling of TZ is a somewhat contentious issue on PHP

See also /

A quick google turned up this: =

and 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 - =



Site Timeline