Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67502 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64510 invoked from network); 24 May 2013 18:23:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2013 18:23:31 -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:48705] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/00-64297-220BF915 for ; Fri, 24 May 2013 14:23:31 -0400 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 47498DE13E; Fri, 24 May 2013 19:23:27 +0100 (BST) Date: Fri, 24 May 2013 11:23:25 -0700 (PDT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Patrick Schaaf cc: =?UTF-8?Q?Leszek_Krupi=C5=84ski?= , internals In-Reply-To: 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-1659714563-1369419807=:5244" Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: derick@php.net (Derick Rethans) --8323329-1659714563-1369419807=:5244 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 24 May 2013, Patrick Schaaf wrote: > Am 24.05.2013 18:45 schrieb "Derick Rethans" : > > > > On Fri, 24 May 2013, Leszek Krupi=C5=84ski wrote: > > > > > I was wondering - why not get time zone info from operating=20 > > > system? It's should be quite easy on both *nixes and Windows. That=20 > > > way default value would be "from operating system", with=20 > > > possibility to override it in .ini. > > > > You can't, as the OS doesn't give you the timezone identifier in a=20 > > portable way. >=20 > Couldn=C2=B4t the default, in the absense of an .ini setting, be to use= =20 > localtime(), i.e. whatever libc does, with the timezone _identifier_=20 > being some string like "OS", "System", or "Localtime" - and we could=20 > then also use that identifier in .ini or ini_set to precisely say "use=20 > the same timezone as all the other libc using programs on this=20 > system". Absolutely not, as you can then never convert between that and another=20 zone. This nonsense is what Redhat patches into it as well and it is a=20 BAD idea. You'd have no idea which DST rules are cheers, Derick --8323329-1659714563-1369419807=:5244--