Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67499 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54240 invoked from network); 24 May 2013 16:45:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2013 16:45:42 -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:39849] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 19/1D-20943-4399F915 for ; Fri, 24 May 2013 12:45:42 -0400 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 67316DE13E; Fri, 24 May 2013 17:45:37 +0100 (BST) Date: Fri, 24 May 2013 09:45:35 -0700 (PDT) X-X-Sender: derick@whisky.home.derickrethans.nl To: =?UTF-8?Q?Leszek_Krupi=C5=84ski?= cc: internals@lists.php.net In-Reply-To: <519EFF2B.501@gmail.com> Message-ID: References: <519E77B4.2050503@sugarcrm.com> <519EFF2B.501@gmail.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-1563171804-1369413937=:5833" Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: derick@php.net (Derick Rethans) --8323329-1563171804-1369413937=:5833 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 24 May 2013, Leszek Krupi=C5=84ski wrote: > On 2013-05-23 22:10, Stas Malyshev wrote: > > > The "U" in UTC *does* stand for "Universal," after all. It's a > > > sensible default and as such shouldn't > > I don't think it's a sensible default - people don't actually use UTC > > when considering dates. A minority of people can use timezone that > > coincides with UTC, but not very many use actual UTC. >=20 > I was wondering - why not get time zone info from operating system? It's > should be quite easy on both *nixes and Windows. That way default value w= ould > be "from operating system", with possibility to override it in .ini. You can't, as the OS doesn't give you the timezone identifier in a=20 portable way. cheers, Derick --8323329-1563171804-1369413937=:5833--