Re: [MRBS-general] bug [ 1949482 ] Problems with daylight savingtime
Brought to you by:
jberanek
From: John B. - M. D. <jbe...@us...> - 2008-10-30 22:38:42
|
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. > [snip] > I've found a fix on Linux is to put the following line in config.inc.php: > > putenv("TZ=Europe/London"); An alternative fix is to put a section like the following in your php.ini. This is only supported (and necessary?) with PHP >= 5.1.0. [Date] ; Defines the default timezone used by the date functions date.timezone = Europe/London John. -- John Beranek - MRBS Developer <http://mrbs.sourceforge.net/> To generalise is to be an idiot. -- William Blake |