Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67515 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50979 invoked from network); 25 May 2013 15:03:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2013 15:03:15 -0000 Authentication-Results: pb1.pair.com header.from=preinheimer@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=preinheimer@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.176 as permitted sender) X-PHP-List-Original-Sender: preinheimer@gmail.com X-Host-Fingerprint: 209.85.192.176 mail-pd0-f176.google.com Received: from [209.85.192.176] ([209.85.192.176:50292] helo=mail-pd0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/44-25010-2B2D0A15 for ; Sat, 25 May 2013 11:03:15 -0400 Received: by mail-pd0-f176.google.com with SMTP id r11so5117483pdi.7 for ; Sat, 25 May 2013 08:03:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=LeUg7Aga6G3p+IDqUyDZ8xtIVp+VDpmMZWHdI8YCPRo=; b=X7n3Q8NFhyq/g+at+g1Q05hrVIrxUgReauXgLIfH78fldhDkCnRgKBMEuhLv8mj3RN hVEockqC6B4Y1gE1Gk44cZohxx9M2o+KW4Lqh7Wq14c2WWSYugKoYwpcbxxBz7QFMuuu 0mCOeG8oygde2ulT/F2DqwJdbChrYr2ax/z9seF/dNxwDP5F2OLs28Xl+hZiAQD+Ttfh Z5WoZRnXZsymbVEikPdcrGTTN3YAtxCcDnaEKKyQJeLq1tvbQZ6f1SWafpgTLzZGHa/b lz6070FmOcTabBjmDlj/fS5M8MWWHWysl6BeykUAJslO5UbKbXWjuQ9iKfAF10Cyr8oE CGKQ== MIME-Version: 1.0 X-Received: by 10.66.27.201 with SMTP id v9mr14095117pag.197.1369494191257; Sat, 25 May 2013 08:03:11 -0700 (PDT) Received: by 10.68.27.35 with HTTP; Sat, 25 May 2013 08:03:11 -0700 (PDT) In-Reply-To: References: <51A092FC.4010700@wikimedia.org> Date: Sat, 25 May 2013 11:03:11 -0400 Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=bcaec529987dcabfba04dd8c36a3 Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: preinheimer@gmail.com (Paul Reinheimer) --bcaec529987dcabfba04dd8c36a3 Content-Type: text/plain; charset=UTF-8 Hi List, > Wouldn't it be possible to have it default to the system's timezone if > available? Most software seems to be able to use the correct timezone. > From a user's pov it is strange that PHP is pretty much the only service > which has to have it's own timezone configuration. > > I appreciate the current state of things. There's only one thing worse than having an operation return the wrong answer, and that's having it return the wrong answer silently. The latter can happen with the wrong TZ setting. I've got a myriad of different systems to deal with, some distro-based installs of PHP separating out php.ini for the CLI, and for Apache. Other installs using the same file like I expect. I make mistakes. I'm currently maintaining ~100 servers from a slew of different providers around the world. The clock is hard enough to trust, let alone what the system's TZ setting is. The #1 answer from providers when we complain that the clock is 2 hours off is to just change the timezone. When I get the blast of warnings, I'm shaken from complacency to invest one minute to find the right file, add the setting, and forget about it once more. paul --bcaec529987dcabfba04dd8c36a3--