Re: date.timezone set and still getting strict warnings.

From: Date: Mon, 13 Jun 2011 21:17:33 +0000
Subject: Re: date.timezone set and still getting strict warnings.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-313506@lists.php.net to get a copy of this message
On Mon, Jun 13, 2011 at 16:25, Tamara Temple <tamouse.lists@gmail.com> wrote: > I have date.timezone set, as shown in the phpinfo() output: > > portfolio:Downloads tamara$ php -r 'phpinfo();' | grep 'timezone' > Default timezone => America/Chicago > date.timezone => 'America/Chicago' => 'America/Chicago' That's the CLI version of PHP.... > Yet, when I call a function like strtotime(), i still get the Strict warning > about not having date.timezone set. (Yes, I have restarted the server, > twice, and the correct value shows up if I invoke phpinfo() via the server.) .... and you're referencing the web version here. > Any clues? Check the web version of PHP's phpinfo() output and see if it and the CLI are using the same php.ini file. My guess is that they're not, and - while the CLI one is set with the timezone - its web counterpart is missing the flag. -- </Daniel P. Brown> Network Infrastructure Manager http://www.php.net/

« previous php.general (#313506) next »