Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62737 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66360 invoked from network); 3 Sep 2012 13:04:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2012 13:04:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=wfitch@meetme.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=wfitch@meetme.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain meetme.com designates 74.125.149.197 as permitted sender) X-PHP-List-Original-Sender: wfitch@meetme.com X-Host-Fingerprint: 74.125.149.197 na3sys009aog107.obsmtp.com Linux 2.5 (sometimes 2.4) (4) Received: from [74.125.149.197] ([74.125.149.197:47907] helo=na3sys009aog107.obsmtp.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6F/19-20751-ACAA4405 for ; Mon, 03 Sep 2012 09:04:11 -0400 Received: from mail-vc0-f170.google.com ([209.85.220.170]) (using TLSv1) by na3sys009aob107.postini.com ([74.125.148.12]) with SMTP ID DSNKUESqw6rTs1AMS8ZSNh3Kjyf6vzfZG63J@postini.com; Mon, 03 Sep 2012 06:04:10 PDT Received: by vcbgb30 with SMTP id gb30so5949822vcb.29 for ; Mon, 03 Sep 2012 06:04:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=tGJhprwrAcvUe9SDgvpJCSQDean58Z541SI0SaxrnwA=; b=pmmdUGl+xjJ79JVETnakOSs8x42T2etg5kyA2LMM0PSqCzyIP8uTOlvL0tJ0EjsJ5N qjx+UGrMJEfGkG/xSh0ladtOTkij9aSq55tL9+SVQQ7qvBK60VCRpXhUrSqm3H/Bx3gk BF2oOgBBA6BQCY93ooLhDV53hEY2er4PC0qZxDNrj+Kx8akpAclXMAExCq4+Gq85nf3J ItwcQycFb3TCZSA6brhyprNo1yfd3QnMneumB+kLSJ9W4p/bL2lYPEWPBltCKy0Mjcm6 fsMqD8d/kTfktPZaV4tglah1JMVXKvaNmBuooXkwzJnrPZCnO39BCvC0KLjLoaor9T5e Zvgg== MIME-Version: 1.0 Received: by 10.220.220.203 with SMTP id hz11mr12284344vcb.50.1346677442797; Mon, 03 Sep 2012 06:04:02 -0700 (PDT) Sender: wfitch@meetme.com Received: by 10.58.132.161 with HTTP; Mon, 3 Sep 2012 06:04:02 -0700 (PDT) X-Originating-IP: [71.185.163.243] In-Reply-To: <5044A261.10901@lsces.co.uk> References: <50435ABE.4010308@ajf.me> <50436412.7010802@ajf.me> <5043C3E9.2010105@ajf.me> <5043C5AF.3060701@ajf.me> <5043C74C.8020400@ajf.me> <5043D8C0.3020802@lsces.co.uk> <5044A261.10901@lsces.co.uk> Date: Mon, 3 Sep 2012 09:04:02 -0400 X-Google-Sender-Auth: wYXz7RS7F8hmzev5vUVG2mirGQo Message-ID: To: Lester Caine Cc: "internals@lists.php.net >> PHP internals" Content-Type: multipart/alternative; boundary=14dae9d24d309ae20204c8cbc6d1 X-Gm-Message-State: ALoCoQklF5SdgbLqVE7ENytrmdzXtqJ3lVT2Jd4wneHiYn94SCVk8NdYMKol4tTj1zcyatXxPWdo Subject: Re: [PHP-DEV] RFC for Adding __toString to DateTime From: willfitch@php.net (Will Fitch) --14dae9d24d309ae20204c8cbc6d1 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Sep 3, 2012 at 8:28 AM, Lester Caine wrote: > Derick Rethans wrote: > >> You have an accurate representation of the ISO format - which does not >>> >specify the string representation of a timezone, but rather the offset >>> of >>> >UTC. This is not lossy. >>> >> Yes it is! You can't go back from an UTC offset to a timezone string. >> Hence: lossy. >> > > Exactly ... > > Will - if you are displaying a date, and then looking for a UTC time 6 > months later you need the daylight saving setting. Personally I get around > this problem by displaying a 'local client time' based on extra details > provided by the client login. A server default is never going to be the > right answer unless you simply switch off ALL timezone working and only use > local time, in which case your proposal could work - as long as it NEVER > displays offsets. Most problems on systems that DO require to correctly > manage timezone shifted data come about by not running the server with a > fixed UTC clock and then trying to map things across different timezones. > In this situation, the browser time offset is useless and the main reason > that Derick is flagging ISO format as lossy. It can never give you the > correct data in six months time where daylight saving shifts comes in and > using it here is just exacerbating that problem by continuing to reinforce > a wrong 'standard'. > > So the server 'default' local time needs to work of extra timezone data > rather than the local clock. Any display MUST then show timezone rather > than just an arbitrary offset or simply UTC time ... with a UTC flag to > confirm that. Hi, Lester - I'll update the patch and RFC to include this format. This is the format I'll use unless others have a better approach: 2012-09-01T00:00:00-0500 (America/Chicago) > > > -- > 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 > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --14dae9d24d309ae20204c8cbc6d1--