Re: [RFC] Remove the date.timezone warning

From: Date: Tue, 27 Jan 2015 14:12:57 +0000
Subject: Re: [RFC] Remove the date.timezone warning
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-81241@lists.php.net to get a copy of this message
> Am 27.01.2015 um 12:49 schrieb Matteo Beccati <php@beccati.com>: > > On 27/01/2015 12:28, Nikita Popov wrote: >> So let the distros solve it ... and allow PHP to still be usable without an >> ini file. > > So, I install php from sources and (simulating the RFC): > > # php -d date.timezone='' -r 'var_dump(@date("Y-m-d H:i:s"));' > string(19) "2015-01-27 11:39:43" > # date > Tue Jan 27 12:39:45 CET 2015 > > how many people would think "WTF"? > > how many "oh right, PHP defaults to UTC unless I change my php.ini"? > > how many "my mistake! of course my laptop should use UTC!"? > > > Cheers > -- > Matteo Beccati > > Development & Consulting - http://www.beccati.com/ 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. If you use no ini, you probably are much more aware of that already... Bob

« previous php.internals (#81241) next »