Sounds like you just upgraded to PHP 5.3?  You can either add:

date.timezone = "America/Los_Angeles"

to your php.ini or call

date_default_timezone_set("America/Los_Angeles")

somewhere near the beginning of your scripts like it suggests to make it go
away.  The list of timezones is at:
http://www.php.net/manual/en/timezones.php

The change was made in 5.3 to force the user to define their timezone after
autodetecting it from the OS led to subtle bugs in earlier versions of PHP.

On Tue, Sep 28, 2010 at 7:50 AM, Bryan Duxbury <[email protected]> wrote:

> I recently regenerated the site and apparently managed to incorporate this
> mess:
>
> Warning: date(): It is not safe to rely on the system's timezone settings.
> You are *required* to use the date.timezone setting or the
> date_default_timezone_set() function. In case you used any of those methods
> and you are still getting this warning, you most likely misspelled the
> timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST'
> instead in
> /Users/bryanduxbury/projects/thrift/thrift-site/dynathrift/thrift.lib.php
> on
> line 161
>
> Any ideas how I can fix that?
>

Reply via email to