Re: [RFC] Remove the date.timezone warning
| From: | Matteo Beccati | Date: | Tue, 27 Jan 2015 11:49:48 +0000 |
| Subject: | Re: [RFC] Remove the date.timezone warning | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81234@lists.php.net to get a copy of this message | ||
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/