Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56889 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11847 invoked from network); 12 Dec 2011 14:34:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Dec 2011 14:34:28 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; 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:55843] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/75-17834-3F016EE4 for ; Mon, 12 Dec 2011 09:34:28 -0500 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id 928F3DE13D; Mon, 12 Dec 2011 14:34:24 +0000 (GMT) Date: Mon, 12 Dec 2011 14:34:24 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Evert Pot cc: internals@lists.php.net In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Local time zone From: derick@php.net (Derick Rethans) On Mon, 12 Dec 2011, Evert Pot wrote: > On Dec 11, 2011, at 1:07 PM, Pierre Joye wrote: > > > On Sun, Dec 11, 2011 at 1:59 AM, Oleg Oshmyan wrote: > > > >> I am willing to work on patches but I suppose some consensus should be > >> reached first. > > > > The consensus was that you have to set a valid default timezone in > > php.ini > > I feel there may be a lot of value for people being able to install > PHP applications and run them without any additional configuration. > > What would be the recommended way to have PHP reflect the systems > timezone? The best way is always going to be: set it up yourself. > I like the PHP 5.4.0 behaviour of defaulting to UTC if it's not setup, > but would it be possible to get the old functionality through a > warning-less 'date_guess_system_timezone'. > > The 'guess' in the function-name should be enough of a warning. People > who opt-in to this behaviour explicitly comply to the possible > inaccuracy of the result. I would be one of those people, and as much > as it may disturb you; I feel I'm not alone. The extension already has http://uk3.php.net/manual/en/function.timezone-name-from-abbr.php which is basically the guessing algorithm. cheers, Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug