Re: [MRBS-general] Time zones
Brought to you by:
jberanek
From: John B. <jo...@re...> - 2006-02-10 12:27:49
|
HenryH wrote: > Hello, > > Two (possibly) related questions about MRBS and time zones & > daylight saving... > > 1. My server with MRBS is in, say, GMT/UCT -5 and my users > are in GMT/UCT +10. How do I tell MRBS to advance it's > understanding of time by the appropriate amount (I do NOT have > access to the clock on the server running MRBS). You can change effective timezone that MRBS uses by adding a line like the following at the top of config.inc.php: putenv('TZ=posix/Etc/GMT+10'); The text after TZ= needs to be a valid timezone on the MRBS server. Not that the example above bypasses daylight savings entirely, by using a GMT offset rather than a country/city. > 2. Next month (March) the Commonwealth Games (Olympice for > the former British Empire) will be held here and daylight saving > will be 'altered' from whatever it was scheduled to be (and which > most daylight scheduling applications understand), to something > which should/may suit the athletes/coaches/officials. Is there a > tweek in MRBS which would allow for moving the 'now' by an hour > (or so)? Hmm, not so sure about this, but you could change the timezone to a zone equivalent to what the modified daylight savings time is. So, following the example above: putenv('TZ=posix/Etc/GMT+11'); assuming a +1 daylight savings. John. -- John Beranek To generalise is to be an idiot. http://redux.org.uk/ -- William Blake |