Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68638 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93615 invoked from network); 28 Aug 2013 14:44:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Aug 2013 14:44:49 -0000 Authentication-Results: pb1.pair.com header.from=bryan@ravensight.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=bryan@ravensight.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ravensight.org from 209.85.214.181 cause and error) X-PHP-List-Original-Sender: bryan@ravensight.org X-Host-Fingerprint: 209.85.214.181 mail-ob0-f181.google.com Received: from [209.85.214.181] ([209.85.214.181:35785] helo=mail-ob0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3E/F2-12893-FDC0E125 for ; Wed, 28 Aug 2013 10:44:48 -0400 Received: by mail-ob0-f181.google.com with SMTP id dn14so6703215obc.40 for ; Wed, 28 Aug 2013 07:44:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-type:content-transfer-encoding :thread-index:content-language; bh=z8T8T2IgRBqdEHZvP3FavbmRU3PbHkOahN9bZcgeWAs=; b=WViMzwTj32jzXV5X6MppfW8QgFaLuAeqfDzArXLNKhzczlMpSjcB3A1LfuyK6t9NhH mgpFiyvVwVmwdP8qqyJtWl9OrsEZCoLwYFqakq7TX9R9vHsOSmQuHiLJOq26vrdqC1z5 C99JYB6vEcn2Bk4a5DoUMieSt4FLzpAevVEG8Z9t13R9vSJ/mq5UExDglDz8mT3D0Mye 9ofahza14LFyisflTqUU1xAhH7dCctjiGwtYOzc8maPm2fixYLZSmqLQ9QoNV+ppuz0l ecQ2vcKD1CRxAZg5V8Lbdch7u6SQaeNko3Lt/TID2j+28Z4jYcyN3Tdx6fRzxkLBRgM3 Is/A== X-Gm-Message-State: ALoCoQlRhF+OhLOmFzYtByWwo7ZzOFG+uMmG+Ls5lMrNYIRn0CUpx744vPSzQVO75qNBwke1CR+O X-Received: by 10.182.51.132 with SMTP id k4mr6785403obo.101.1377701084894; Wed, 28 Aug 2013 07:44:44 -0700 (PDT) Received: from Genie (ppp-69-154-211-43.dsl.ksc2mo.swbell.net. [69.154.211.43]) by mx.google.com with ESMTPSA id s9sm22851753obu.4.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 28 Aug 2013 07:44:43 -0700 (PDT) To: "'PHP internals'" References: In-Reply-To: Date: Wed, 28 Aug 2013 09:44:39 -0500 Message-ID: <006301cea3fd$22f380c0$68da8240$@org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac6j7RN/9293nM+aSV+8zIZF3Q2hJwAD+lYw Content-Language: en-us Subject: RE: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: bryan@ravensight.org ("Bryan C. Geraghty") I like the idea of defaulting to UTC. Inevitably, this is how I set up = my apps anyway. Bryan -----Original Message----- From: Marcel Araujo [mailto:ceceldada@gmail.com]=20 Sent: Wednesday, August 28, 2013 7:49 AM To: Nikita Popov Cc: Daniel Lowrey; Derick Rethans; PHP internals Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? = What's the rationale? I agree. 2013/8/28 Nikita Popov > On Thu, May 23, 2013 at 8:40 PM, Daniel Lowrey = wrote: > > > I'm probably not the typical PHP user; I spend 99% of my PHP time=20 > > using the CLI (and not web SAPIs). > > This means that I frequently run PHP without an .ini file. As a=20 > > result, when I use any of the date/time functionality I invariably=20 > > end up with this awesomeness: > > > > > Warning: date(): It is not safe to rely on the system's timezone > > settings blah blah blah. > > > > I was thinking about this again and maybe we could reach the following > compromise: > > * Set date.timezone =3D UTC as the default INI value > * In php.ini-production and php.ini-development uncomment the > ;date.timezone =3D > line, i.e. change it to > date.timezone =3D > > This would mean that people running PHP without an ini would get UTC=20 > as the default and people running with an ini based on=20 > php.ini-production/php.ini-development would get the warning. > > Short of completely dropping the warning this is the behavior that=20 > would make most sense to me. (As people running without an ini=20 > obviously don't care about setting the timezone) > > Thanks, > Nikita > -- *** Marcel Araujo Analista de Sistemas Desenvolvedor PHP/Zend/JavaScript/jQuery/NodeJS Linux User #490101 http://www.twitter.com/marcelarauj0 http://blog.marcelaraujo.me http://br.linkedin.com/in/marcelaraujo *