Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19233 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1856 invoked by uid 1010); 28 Sep 2005 08:24:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 1841 invoked from network); 28 Sep 2005 08:24:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Sep 2005 08:24:22 -0000 X-Host-Fingerprint: 194.73.73.220 c2bthomr05.btconnect.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from ([194.73.73.220:19508] helo=C2bthomr05.btconnect.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id CB/9E-54476-5335A334 for ; Wed, 28 Sep 2005 04:24:21 -0400 Received: from [10.0.0.9] (host81-138-11-136.in-addr.btopenworld.com [81.138.11.136]) by C2bthomr05.btconnect.com (MOS 3.5.9-GR) with ESMTP id CBT03080; Wed, 28 Sep 2005 09:21:59 +0100 (BST) Message-ID: <433A52A7.2090805@lsces.co.uk> Date: Wed, 28 Sep 2005 09:21:59 +0100 Organization: L.S.Caine Electronic Services User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 X-Accept-Language: en, en-us MIME-Version: 1.0 To: Derick Rethans , internals@lists.php.net References: <43393A43.4070805@lsces.co.uk> <43397E48.7080107@lsces.co.uk> <43398CB6.9030808@lsces.co.uk> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] timezones & date() breakage From: lester@lsces.co.uk (Lester Caine) Derick Rethans wrote: > On Wed, 28 Sep 2005, Stanislav Malyshev wrote: > > >>LC>>> UTC. Do you have your watch in UTC and your wall clock in your home in >>LC>>> UTC? >>LC>> >>LC>>ACTUALLY - all the server clocks are set to GMT - that way I know who ever >>LC>>enters data, the timestamp is always correct, what ever their local time ;) >> >>I am starting to get an impression that you reply to me without reading >>what I wrote. Once more: when I need to display current time for this >>machine, I don't need UTC. > > But you do need UTC somewhere, as *all* date code (OS, applications) > use UTC timestamps to calculate the current time. And I have finally found the hole in what *I* am trying to do - as it was hidden in someone else's code ;) the javascript getTimezoneOffset() only gives the current time offset from UTC and requests for daylight saving information with it go back to at least 2001 :( So I will have to continue with asking a user where they are when they log in ;) Stanislav - DISPLAYING local time only applies to the local site - when you are logging into an Australian machine the local time of that machine is not a lot of use. But *IF* I want to compare - say - bid times between an American and an Australian machine, then the ONLY time that can be used is UTC ? -- Lester Caine ----------------------------- L.S.Caine Electronic Services Treasurer - Firebird Foundation Inc.