Re: timezones & date() breakage

From: Date: Tue, 27 Sep 2005 17:15:52 +0000
Subject: Re: timezones & date() breakage
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-19210@lists.php.net to get a copy of this message
Derick Rethans wrote:
I'm coming in late here - but being in the middle of trying to configure a system to provide calendars across time and daylight saving zones, I've been deep in this! I have no problem with the time AT THE SERVER! What I need to know is what daylight saving zone the client is in so I can build the correct calendar for March/April or October/November. *ALL* the data on the server is stored UTC so I could not care less which zone it is in :) The ONLY solution I currently have is to get the client to set their time/daylight zone in their profile on the server ?
I've no clue what you mean here... sorry. Try to explain a bit better what you want to do. Do you want to render events' dates with the correct timezone while your data is in UTC (as Unix timestamp?)?
Yes Client currently supplies tz_offset, but that does not identify the daylight saving offset so you can not show the correct shifts of calendar times for the 'other' daylight offset :( The FIRST problem I had was STOPPING the display from being offset by the SERVER daylight saving setting! There is absolutely no reason that date() should supply anything other than the current UTC time. It is the only thing that is actually RIGHT! -- Lester Caine ----------------------------- L.S.Caine Electronic Services Treasurer - Firebird Foundation Inc.

« previous php.internals (#19210) next »