Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67556 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27848 invoked from network); 27 May 2013 09:58:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2013 09:58:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 213.123.20.127 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 213.123.20.127 c2bthomr09.btconnect.com Received: from [213.123.20.127] ([213.123.20.127:13739] helo=mail.btconnect.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 53/92-32733-14E23A15 for ; Mon, 27 May 2013 05:58:26 -0400 Received: from host81-138-11-136.in-addr.btopenworld.com (EHLO _10.0.0.5_) ([81.138.11.136]) by c2bthomr09.btconnect.com with ESMTP id LWD91243; Mon, 27 May 2013 10:58:23 +0100 (BST) Message-ID: <51A32E3E.6090506@lsces.co.uk> Date: Mon, 27 May 2013 10:58:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0 SeaMonkey/2.17 MIME-Version: 1.0 To: "internals@lists.php.net >> PHP internals" References: <51A092FC.4010700@wikimedia.org> <51A1AF3E.5000704@sugarcrm.com> <51A2D395.5030302@sugarcrm.com> <1022965181.20130527011024@cypressintegrated.com> <51A2FD10.7030906@gmail.com> <293168642.20130527032001@cypressintegrated.com> <6c6c2a5a-8762-48fc-9a71-0e9c5dca82a5.maildroid@localhost> <1331934391.20130527050005@cypressintegrated.com> In-Reply-To: <1331934391.20130527050005@cypressintegrated.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mirapoint-IP-Reputation: reputation=Fair-1, source=Queried, refid=tid=0001.0A0B0301.51A32E3F.0009, actions=tag X-Junkmail-Premium-Raw: score=7/50, refid=2.7.2:2013.5.27.93617:17:7.944, ip=81.138.11.136, rules=__MOZILLA_MSGID, __HAS_MSGID, __SANE_MSGID, __HAS_FROM, __USER_AGENT, __MOZILLA_USER_AGENT, __MIME_VERSION, __TO_MALFORMED_2, __TO_NO_NAME, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __IN_REP_TO, __CT, __CT_TEXT_PLAIN, __CTE, __ANY_URI, __URI_NO_MAILTO, __URI_NO_WWW, __CP_URI_IN_BODY, BODY_ENDS_IN_URL, __FORWARDED_MSG, BODYTEXTP_SIZE_3000_LESS, BODY_SIZE_1600_1699, __MIME_TEXT_ONLY, RDNS_GENERIC_POOLED, HTML_00_01, HTML_00_10, BODY_SIZE_5000_LESS, RDNS_SUSP_GENERIC, RDNS_SUSP, BODY_SIZE_2000_LESS, BODY_SIZE_7000_LESS X-Junkmail-Status: score=10/50, host=c2bthomr09.btconnect.com X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A0B0202.51A32E3F.0068:SCFSTAT14830815,ss=1,re=-4.000,fgs=0, ip=0.0.0.0, so=2011-07-25 19:15:43, dmn=2011-05-27 18:58:46, mode=multiengine X-Junkmail-IWF: false Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: lester@lsces.co.uk (Lester Caine) Sanford Whiteman wrote: > I'm not talking about storage time zone; we use UTC for that. I'm > talking about the default display time zone. Unless we are > misunderstanding each other (not unlikely given how this thread has > sprawled) you seem to be saying the display time zone should be UTC by > default and changed only based on end-user input. I think there are > five legitimate levels of consideration (storage tz, sitewide display > tz, domain/corporate display tz, stored user profile tz, and transient > session tz). Actually I probably am saying 'default to UTC for display' but simply drop the 'UTC' bit altogether! If you want a site to run in a single timezone, then using timezone settings just complicates things. In particular when trying to set a meeting in 6 months time which is the one that caught me out initially. Simply using a raw unadulterated time is the safest way of managing sites that have no real interest in daylight saving. As soon as you NEED to manage timezones/DLS, then the starting point is always to run the server as UTC and manage everything else from that. Running the server on any other setting and trying to store UTC data introduces yet another unnecessary complication. Adding tz as a requirement was the basic mistake here. It has no place on many systems. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk