Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67483 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5180 invoked from network); 24 May 2013 08:20:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2013 08:20:30 -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.169 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.214.169 mail-ob0-f169.google.com Received: from [209.85.214.169] ([209.85.214.169:37390] helo=mail-ob0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/A3-20943-CC22F915 for ; Fri, 24 May 2013 04:20:29 -0400 Received: by mail-ob0-f169.google.com with SMTP id 16so4780115obc.0 for ; Fri, 24 May 2013 01:20:25 -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=otLGR94wjJDHSnG8j/phD2KQox8xI0bp+1xoti7vHsA=; b=sDHy55Fofbx0+FaQqSHOgkm/+pcXspnsxuEK3DQL7tOQqQ9zH5r890+J1ULMG9Ur98 Y47hv1X+ipRocaxB9KElBl9q5qVW32XCPU3ekUzTgEaOjc+rVJSytdrlaQ8ZcdGtBJnI 43UIob+F5GYCuyaocWsZP/7EaFuFwHuh0KbfNTfof4yAXn+5RWP37n6VhySM4MAcFNNa ep7h417SdR5/o8s+28UK1v1to0THG528UukfqLgHaHHDqsbu76fNaWUmwlvHaMxwe8CW oc8c9UFC2rh/G4qnAXt559HJlJDPYhn+8Y4Ioobne/bXKEibQsAlU1nKIqaZtQqQFCT2 naxw== MIME-Version: 1.0 X-Received: by 10.182.129.42 with SMTP id nt10mr10871344obb.54.1369383625671; Fri, 24 May 2013 01:20:25 -0700 (PDT) Received: by 10.182.33.234 with HTTP; Fri, 24 May 2013 01:20:25 -0700 (PDT) In-Reply-To: References: <519E77B4.2050503@sugarcrm.com> <519EFF2B.501@gmail.com> Date: Fri, 24 May 2013 01:20:25 -0700 Message-ID: To: Levi Morrison Cc: =?ISO-8859-2?Q?Leszek_Krupi=F1ski?= , internals@lists.php.net Content-Type: multipart/alternative; boundary=e89a8fb1fbfe91cbcc04dd7278ad Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: kris.craig@gmail.com (Kris Craig) --e89a8fb1fbfe91cbcc04dd7278ad Content-Type: text/plain; charset=ISO-8859-1 On Fri, May 24, 2013 at 1:16 AM, Kris Craig wrote: > > > 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 > > Another possible idea would be to make it so that you can specify the date.timezone in configure. This would cause make install to automatically set it in php.ini. That might be useful for folks like Daniel who don't like having to do that extra step of manually editing php.ini to avoid throwing warning errors. --Kris --e89a8fb1fbfe91cbcc04dd7278ad--