Will Fitch wrote:
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)
Either offset OR timezone ... not both ... BUT as Derick has pointed out ... without the offset, we don't know it is offset from UTC so you end up needing both. This is where there is still a lot of disagreement on short codes for normal and DST settings and a lot of clashes. NORM/DST is more help than the offset ... ( And seconds for Lars )
However the other thing to bear in mind here is that if you don't set a timezone for the datetime object then you just get a simply local time and do not want to display a timezone at all. I think it more likely that people will be doing that as much as are actually displaying a timezone? I would probably expect as many people don't want TZ as do? Derick will probably say you should not use it like that ;) but I only setTimezone on the display side when I need to convert from UTC. Simple single time zone setups don't need to worry about daylight saving so just working with a simple 'clock' is practical.
-- 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