Re: [RFC] Remove the date.timezone warning

From: Date: Tue, 27 Jan 2015 15:39:27 +0000
Subject: Re: [RFC] Remove the date.timezone warning
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-81245@lists.php.net to get a copy of this message
> Am 27.01.2015 um 16:27 schrieb Matteo Beccati <php@beccati.com>: > > On 27/01/2015 15:12, Bob Weinand wrote: >> If you use the distros default, it often is UTC too. Then we have >> this same issue, just without warning. This warning often doesn't >> help at all, because it just doesn't appear at all. > > Well, if the distro sets display_errors = Off but doesn't also set a proper timezone, I > would dare to say it's a bug in their packages. > > Vanilla PHP doesn't do that; it does if you blindly use php.ini-production, but then > it's your own fault if you don't set it. > > Actually, the example ini files could even start with a friendly reminder that date.timezone > should be set. Not arguing here. I'm on your side here, we can give the timezone a better visibility in the ini without problems. The point is just to have date() (with UTC obviously) usable without getting warned in a simple ./sapi/cli/php -r '/* something with date() */' call. And no, I don't want to always forget to explicitly set "-ddate.timezone=UTC". It's not comfortable that way. Bob

« previous php.internals (#81245) next »