Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67482 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3698 invoked from network); 24 May 2013 08:16:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2013 08:16:36 -0000 Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:50456] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/53-20943-3E12F915 for ; Fri, 24 May 2013 04:16:36 -0400 Received: by mail-ob0-f170.google.com with SMTP id er7so5216295obc.29 for ; Fri, 24 May 2013 01:16:33 -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=ob/qrhDGpyMthBL1Zew4ShHMt6ziiD2ngXEXQ2OMDqI=; b=TQwhb9kwWKklyBlIeuxd6ERaS18uQiLt7cy5BXsg1xd1P4InOAPIfn5eHVSnbKu5fE 2VjP/91mLRV0yYACqnRAJ3PEZZ7N45n7ONhiqO95QRyw+Ei9STLrf+0YniuTpKDG4MOt XcZRGdeYIrq/+5bAPh+g5OFdPQKgVSZk8F6LVx+kUhjN7QwVGV+VDKcQrpNs8KELQh6g DsubC9/EU/ArUNTtfWqXGp5WnJjasybTlxSwbam5eEFtVZkRgfntR8yyHogey7oXf6TT mHTzcN07b3Jxlx12UIyxWXR341udDpr1h1dTlgycf3S2O0fgo6K87azoULFaUl+BufvA H5IQ== MIME-Version: 1.0 X-Received: by 10.60.35.100 with SMTP id g4mr10996107oej.53.1369383393349; Fri, 24 May 2013 01:16:33 -0700 (PDT) Received: by 10.182.33.234 with HTTP; Fri, 24 May 2013 01:16:33 -0700 (PDT) In-Reply-To: References: <519E77B4.2050503@sugarcrm.com> <519EFF2B.501@gmail.com> Date: Fri, 24 May 2013 01:16:33 -0700 Message-ID: To: Levi Morrison Cc: =?ISO-8859-2?Q?Leszek_Krupi=F1ski?= , internals@lists.php.net Content-Type: multipart/alternative; boundary=089e013c68a0b8d8a704dd726a01 Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: kris.craig@gmail.com (Kris Craig) --089e013c68a0b8d8a704dd726a01 Content-Type: text/plain; charset=ISO-8859-1 On Fri, May 24, 2013 at 12:11 AM, Levi Morrison 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. > > > > 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 > > would be "from operating system", with possibility to override it in > .ini. > > I believe this may have been the behavior at some point; at least > date_default_timezone_get change in PHP 5.4 to no longer includes info > from the OS. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Couldn't we take a page from MySQL's book and have a setup script that prompts the admin for this (much like theirs prompts for a root password). A reminder to run it could be added as a nag at the end of the install; or, perhaps even have it give you these setup prompts at the end of make install. This way, any environment-specific settings we think should be there that don't have obvious defaults, like date.timezone, could be added as prompts in the setup script. This would enable even inexperienced admins to add these settings without cluttering-up the bugs tracker. Thoughts? --Kris --089e013c68a0b8d8a704dd726a01--