[Wylug-help] php date.timezone#
James Holden
wylug at jamesholden.net
Sat Sep 15 10:00:54 BST 2007
On Fri, Sep 14, 2007 at 04:11:16PM +0100, 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
Dirty, yes... and you'll have to do it every time you upgrade
squirrelmail.
A less dirty method is to create a file called:
/usr/lib/php/auto_prepend.inc
...containing:
<?php
date_default_timezone_set('Europe/London');
?>
and add the following to the php.ini file:
auto_prepend_file = /usr/lib/php/auto_prepend.inc
> 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.
Quite... it may be looking somewhere else.
James
>
> Cheers
> --
> Phil Driscoll
>
> _______________________________________________
> Wylug-help mailing list
> Wylug-help at wylug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/wylug-help
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://list.wylug.org.uk/pipermail/wylug-help/attachments/20070915/404f89d6/attachment.bin
More information about the Wylug-help
mailing list