Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67541 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97734 invoked from network); 27 May 2013 06:28:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2013 06:28:46 -0000 Authentication-Results: pb1.pair.com header.from=leafnode@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leafnode@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.47 as permitted sender) X-PHP-List-Original-Sender: leafnode@gmail.com X-Host-Fingerprint: 209.85.214.47 mail-bk0-f47.google.com Received: from [209.85.214.47] ([209.85.214.47:54386] helo=mail-bk0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B5/9C-32733-D1DF2A15 for ; Mon, 27 May 2013 02:28:45 -0400 Received: by mail-bk0-f47.google.com with SMTP id jg1so3415869bkc.6 for ; Sun, 26 May 2013 23:28:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=CjVidxrCIEg6ct2Ey+Rx8nLSE+WJQ5SzoJziQ+3Z/1Q=; b=OHQhShtdhhRoMHjPLKNjUob7S4NsuBiZGafaxO7PfIYAviJkTWUtYpuMfu/YR1k+DK 1+ch90IyHLlYCARtJf+r4CSnBoAnvc+yyyHh5fMw9GEqKArYsJfjO/rz1myNguvJxjOS egypblJKsEETqGIYICEw1kv6+uK1KrW7dtrO9RZWV6H3S22stkSbGM1gzYt6o1WfmVvY Ft5t/1PKFQsVdZWy4CdPUPWwvSZQ/O9xLBv2BT4l9X8x7UcepNZSkYWIFNHpQRxX1Y+g Fbq6C2l2bwy/ITa6f8uwx9dxNq1luDNp83PmO9NVjR+lzWN96zNWB/U9IuVpMtRmbRmC yDew== X-Received: by 10.205.46.193 with SMTP id up1mr11538063bkb.65.1369636122896; Sun, 26 May 2013 23:28:42 -0700 (PDT) Received: from [10.0.20.40] (81-18-213-39.static.chello.pl. [81.18.213.39]) by mx.google.com with ESMTPSA id i15sm7733035bkz.12.2013.05.26.23.28.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 May 2013 23:28:42 -0700 (PDT) Message-ID: <51A2FD10.7030906@gmail.com> Date: Mon, 27 May 2013 08:28:32 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: internals@lists.php.net References: <51A092FC.4010700@wikimedia.org> <51A1AF3E.5000704@sugarcrm.com> <51A2D395.5030302@sugarcrm.com> <1022965181.20130527011024@cypressintegrated.com> In-Reply-To: <1022965181.20130527011024@cypressintegrated.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: leafnode@gmail.com (=?UTF-8?B?TGVzemVrIEtydXBpxYRza2k=?=) On 2013-05-27 07:10, Sanford Whiteman wrote: > In general, I use the principle of "domain time." If a site serves a > (stock) exchange that closes at 4:00pm Eastern time, people hitting > that site from all over the world are not going to necessarily > remember that close-of-business is such-and-such UTC or such-and-such > Tokyo. At best they will need to see the times side-by-side (like the > example of world clocks on the wall). And the fact that our clients' > end users see the time at corporate HQ by default is just another > manifestation of the domain time principle. Some domains don't pretend > to be timeless and spaceless. Note this doesn't mean all client > software is ignoring "roaming time" -- we send iCal invites in UTC of > course -- nor that, in our case, users they can't change what the site > displays if they insist (though they rarely do). It's a question of > the best-fit default. > > Of course, there are many sites for which the best default *is* > user-defined or UTC, whichever is found first. It's just not a > universal assumption. As you have said - there are some use cases, where non-UTC TZ setting is important. But do you think that people running this software wouldn't know that they have to set a proper time zone in ini file? Or at least in app configuration? In my opinion UTC is a good compromise. From my experience, the problem divides into two categories: a) apps that display time on pages and users might be wondering why the time has some shift - it's not a critical setting; it might be set, but without this no key features are borked; b) app is deeply set in a geographic location, like aforementioned stock exchange - proper setting is critical. In a) setting TZ to UTC is not making the website broken - it's just a glitch. Admin can fix the setting if anyone notices the problem - yes, that might stem a lot of bug reports, but as it was with register_globals. In b) admin should really know better that he has to set this in ini. Also, in my opinion, responsibility for the setting should be moved from system administrator to application developer. If app is time-set, it should have a proper setting for this. It was said before that there aren't many systems that require you to set this setting. It was also bashed that "you don't know all the apps". Yeah, maybe I don't know all of them, but I've installed Python, Ruby and Java apps (which I assume comprise most of web app environments - ASP aside, but I suppose in this case it's even easier to get proper TZ from environment), and I was never forced to set _any_ option because otherwise my app would be showing some nasty warnings. But that's only my experience. --Leszek