Re: [MRBS-general] bug [ 1949482 ] Problems with daylight savingtime
Brought to you by:
jberanek
From: Jennifer P. <jp...@ca...> - 2008-10-28 13:32:16
|
John Beranek - MRBS Developer wrote: > Jennifer Pollard wrote: >> John Beranek - MRBS Developer wrote: >>> Chris Snow wrote: >>>> Thanks Mike. >>> However, if your server is correctly configured for DST, no action >>> should be necessary. >> This doesn't seem to be true for me... We use GMT/BST and every time the >> time changes, I have to run a bit of SQL on our BST entries to bring >> them back in line to the correct time. PHP and the server are both set >> to use Europe/London. > > Well, over the recent British DST change, I did a test. Once we swapped > back to GMT, entries after the change were all correct, but entries > _before_ the change showed as being an hour early! <snip> > I've found a fix on Linux is to put the following line in config.inc.php: > > putenv("TZ=Europe/London"); Brilliant! That seems to have done the trick, John - many thanks for your efforts! :) -Jen -- Jennifer Pollard Computer Officer Faculty of English University of Cambridge This e-mail (and any files transmitted with it) is strictly confidential and intended only for the use of the individual or organisation to whom it is addressed. It may contain information which is privileged. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and destroy the original message. Thank you. |