date() and php53
itetcu at FreeBSD.org
Wed Apr 28 15:47:56 EDT 2010
On Wed, 28 Apr 2010 11:32:52 -0700
Rob Farmer <rfarmer at predatorlabs.net> wrote:
> On Wed, Apr 28, 2010 at 9:06 AM, Beat Gätzi <beat at chruetertee.ch>
> > 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
> IMHO this ought to be fixed in the PHP port. Is there a good reason I
> should have to set the system timezone in individual applications, in
> addition to in the base system?
Yes, I agree, it's one of the stupidities php devels manage to come up
I used to like PHP.
IOnut - Un^d^dregistered ;) FreeBSD "user"
"Intellectual Property" is nowhere near as valuable as "Intellect"
FreeBSD committer -> itetcu at FreeBSD.org, PGP Key ID 057E9F8B493A297B
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 196 bytes
Desc: not available
More information about the tinderbox-list