[Wylug-help] php date.timezone

Gary Stainburn gary.stainburn at ringways.co.uk
Fri Sep 14 16:43:25 BST 2007


On Friday 14 September 2007 16:11, Phil Driscoll wrote:
> Gary
>
> The dirty hack is to stick a
> date_default_timezone_set('Europe/London');
> before line 420 in /usr/share/squirrelmail/functions/date.php
>
> If you insert a phpinfo(); into /usr/share/squirrelmail/functions/date.php
> you will see what php thinks is the timezone it should use. If it's not
> Europe/London, then check that PHP is using the php.ini that you think it
> is.
>
> Cheers

Hi Phil

I added:

$wtz=date_default_timezone_get();
error_log("left_main.php: wtz='$wtz'");

and it put 'Europe/London' in the error log and then still complained.
However, when I then added 

date_default_timezone_set('Europe/London');

immediately after the error_log line it fixed the problem.

now go figure that one
-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     



More information about the Wylug-help mailing list