Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67516 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53388 invoked from network); 25 May 2013 15:05:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2013 15:05:09 -0000 Authentication-Results: pb1.pair.com header.from=tstarling@wikimedia.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tstarling@wikimedia.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain wikimedia.org designates 208.80.152.186 as permitted sender) X-PHP-List-Original-Sender: tstarling@wikimedia.org X-Host-Fingerprint: 208.80.152.186 mchenry.wikimedia.org Received: from [208.80.152.186] ([208.80.152.186:54663] helo=mchenry.wikimedia.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/D4-25010-423D0A15 for ; Sat, 25 May 2013 11:05:09 -0400 Received: from [2620:0:860:2:219:b9ff:fedd:86eb] (port=35935 helo=sanger.wikimedia.org) by mchenry.wikimedia.org with esmtp (Exim 4.69) (envelope-from ) id 1UgG1q-00050p-9P; Sat, 25 May 2013 15:05:06 +0000 Received: from ip4daa59e3.direct-adsl.nl ([77.170.89.227]:59180 helo=[192.168.2.23]) by sanger.wikimedia.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1UgG1p-0004fb-VR; Sat, 25 May 2013 15:05:06 +0000 Message-ID: <51A0D320.5020605@wikimedia.org> Date: Sat, 25 May 2013 17:05:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: Pierre Joye CC: PHP internals References: <51A092FC.4010700@wikimedia.org> In-Reply-To: X-Enigmail-Version: 1.4.6 OpenPGP: id=BF976370 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: tstarling@wikimedia.org (Tim Starling) On 25/05/13 14:09, Pierre Joye wrote: > > It is actually only about getting safe, cross platform/OS (even > between Linux versions) for the TZ database. It has nothing to do > with taste or similar subjective opinion. > > For the record, the behavior requested in this thread is what we had > in earlier versions, all we got was plenty of bugs reports about > wrong TZ detections. > I had missed the removal of the TZ detection code from guess_timezone() in 5.4. So @date_default_timezone_get() is somewhat less useful than it used to be, as a function for detecting system settings. > I think it is not too much asking to set it in php.ini or in your > application. > At least for MediaWiki, it's certainly more important to avoid warnings than it is to have the right local timezone. UTC is used in any case where consistency is important. Based on other posts to this list, I don't think we're alone in this. -- Tim Starling