Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81232 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66718 invoked from network); 27 Jan 2015 11:22:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jan 2015 11:22:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:35408] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3A/81-59067-FF477C45 for ; Tue, 27 Jan 2015 06:22:39 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id E11AF10C0DF; Tue, 27 Jan 2015 11:22:35 +0000 (GMT) Date: Tue, 27 Jan 2015 11:22:35 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Nikita Popov cc: Matteo Beccati , Bob Weinand , PHP Internals In-Reply-To: Message-ID: References: <54C732F3.8050304@beccati.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] [RFC] Remove the date.timezone warning From: derick@php.net (Derick Rethans) On Tue, 27 Jan 2015, Nikita Popov wrote: > On Tue, Jan 27, 2015 at 7:40 AM, Matteo Beccati wrote: > > > On 27/01/2015 01:34, Bob Weinand wrote: > > > >> Hey, > >> > >> I'd like to request removal of the date.timezone warning. > >> > >> Here is the RFC: > >> https://wiki.php.net/rfc/date.timezone_warning_removal < > >> https://wiki.php.net/rfc/date.timezone_warning_removal> > >> > > > > The warning is certainly annoying, but making it default to UTC or a wrong > > timezone because the right one can't be guessed is a major WTF. > > > > Ideally the initial setup of php.ini could be handled by the distro > > package system, if it's not already? > > Isn't UTC the only "right" default timezone there is for a server? This is not a server setting, this is a PHP application level setting. And there, UTC is not the "right" default choice. > Everything else being there to simplify implementation of websites > which anticipate a geographically narrow target audience? > > Anyway, I absolutely don't get why out of all the hundreds of ini > settings that we have, some of them vastly more important than setting > a timezone (like display_errors or error_reporting - newbies trip over > these much more often), the only one we actually require you to > specify is date.timezone. That seems very disproportional. But easily solved by distributions. Debian could easily stick the following in a post-install hook to fix it: echo -n 'date.timezone=' > /etc/php/config.d/date.ini cat /etc/timezone >> /etc/php/config.d/date.ini cheers, Derick