Re: timezones & date() breakage
| From: | Lester Caine | Date: | Wed, 28 Sep 2005 08:21:59 +0000 |
| Subject: | Re: timezones & date() breakage | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-19233@lists.php.net to get a copy of this message | ||
Derick Rethans wrote:
On Wed, 28 Sep 2005, Stanislav Malyshev wrote: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.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.