Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68838 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39054 invoked from network); 2 Sep 2013 09:47:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2013 09:47:57 -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:51516] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 37/E1-29856-ACE54225 for ; Mon, 02 Sep 2013 05:47:56 -0400 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 42311E202A; Mon, 2 Sep 2013 10:47:52 +0100 (BST) Date: Mon, 2 Sep 2013 10:47:50 +0100 (BST) X-X-Sender: derick@whisky.home.derickrethans.nl To: Nikita Popov cc: Daniel Lowrey , PHP internals In-Reply-To: Message-ID: References: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: derick@php.net (Derick Rethans) On Wed, 28 Aug 2013, Nikita Popov wrote: > 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 = No, php.ini-development should have what PHP does by default. cheers, Derick