I recently changed my error settings in php.ini from E_ALL to E_ALL | E_STRICT.

Now at the top of my pages i'm getting a warning message...

Strict Standards: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'Europe/London' for '0.0/no DST' instead.

I presume I need to change a timezone setting in php.ini, but i've no idea which.

Help.

    [Date]
    ; Defines the default timezone used by the date functions
    ;date.timezone =

    in the php.ini

      dagon;10894228 wrote:

      [Date]
      ; Defines the default timezone used by the date functions
      ;date.timezone =

      in the php.ini

      Thanks. Set it to

      date.timezone = "Europe/London"

      and it works a treat now.

      Obvious really, should have worked that out myself, but I don't like changing things in php.ini when I don't really know what i'm doing.

        Write a Reply...