date() and php53
Matt Dawson
matt at chronos.org.uk
Wed Apr 28 12:37:59 EDT 2010
On Wednesday 28 Apr 2010 17:06:58 Beat Gätzi wrote:
> Hi,
>
> Matt Dawson wrote:
> > Just a quick heads-up for anyone who has updated to php53 and is
> > now getting an error message where the header should be in webui.
> > The date() function now requires a timezone and won't rely on the
> > system's timezone setting by default. Sticking the following:
> >
> > date_default_timezone_set('Europe/London');
> >
> > at the top of $pb/scripts/webui/index.php (obviously replacing
> > Europe/London with your timezone) just below the <?php line will
> > get rid of that error. Don't be tempted to just slam UTC in
> > there, though.
> >
> > There's probably a better way to automate this, but as a quick
> > fix it works.
>
> You could set date.timezone in your php.ini to get rid of this
> error message. Please take a look at this commit for more
> information:
> http://marcuscom.com/pipermail/tinderbox-cvs/2010-April/001422.htm
Yep, missed that one, Beat. Works fine. Thanks a lot!
--
Matt Dawson
MTD15-RIPE
matt at chronos.org.uk
More information about the tinderbox-list
mailing list