Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68632 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68690 invoked from network); 28 Aug 2013 09:08:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Aug 2013 09:08:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.48 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.219.48 mail-oa0-f48.google.com Received: from [209.85.219.48] ([209.85.219.48:42533] helo=mail-oa0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/30-01680-70EBD125 for ; Wed, 28 Aug 2013 05:08:24 -0400 Received: by mail-oa0-f48.google.com with SMTP id o17so7217972oag.21 for ; Wed, 28 Aug 2013 02:08:21 -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 :cc:content-type; bh=AScoXKntclwDRy5HaDib3jiG5GJul1kx0ykYyhLeq2I=; b=vUT6OBSEP04u3KvqtCoA8OQ0xXdrm0ItVjPqfUE3DPgpdA3vS6Bw288WPPNksMeyGo mFLMD9B2jG9TgzYSwAQNGb/Nq/1yhi91kuAXcF58b/lZWt7LCK0rtF3VG7df4NyWpSx0 rnqrLdS9m1YUtCnCXhgHpx3WCMNGHA4Gr2zXI6s4hj5Zfbzv2um5alO6Ksc3BepRmaQp jlAWViJDusSf+rUL9n4wuuKOtyv8n4kjGrw8DoGT+4c8z8xJ5dFefUU3UbBur+n9wchK LrxwBHPXI0U/6w+ImTzUUYYVNVzhssIjC1Yghyr8+vktERzi8HFbfl0w1g7DQPBWBpc3 TdTA== MIME-Version: 1.0 X-Received: by 10.182.101.198 with SMTP id fi6mr5681513obb.79.1377680900915; Wed, 28 Aug 2013 02:08:20 -0700 (PDT) Received: by 10.182.98.8 with HTTP; Wed, 28 Aug 2013 02:08:20 -0700 (PDT) In-Reply-To: References: Date: Wed, 28 Aug 2013 11:08:20 +0200 Message-ID: To: Daniel Lowrey , Derick Rethans Cc: PHP internals Content-Type: multipart/alternative; boundary=e89a8ff1ceb6b6870704e4fe5475 Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: nikita.ppv@gmail.com (Nikita Popov) --e89a8ff1ceb6b6870704e4fe5475 Content-Type: text/plain; charset=ISO-8859-1 On Thu, May 23, 2013 at 8:40 PM, Daniel Lowrey wrote: > I'm probably not the typical PHP user; I spend 99% of my PHP time > using the CLI (and not web SAPIs). > This means that I frequently run PHP without an .ini file. As a > result, when I use any of the date/time > functionality I invariably end up with this awesomeness: > > > Warning: date(): It is not safe to rely on the system's timezone > settings blah blah blah. > I was thinking about this again and maybe we could reach the following compromise: * Set date.timezone = UTC as the default INI value * In php.ini-production and php.ini-development uncomment the ;date.timezone = line, i.e. change it to date.timezone = This would mean that people running PHP without an ini would get UTC as the default and people running with an ini based on php.ini-production/php.ini-development would get the warning. Short of completely dropping the warning this is the behavior that would make most sense to me. (As people running without an ini obviously don't care about setting the timezone) Thanks, Nikita --e89a8ff1ceb6b6870704e4fe5475--