It is not safe to rely on the system's timezone settings.

If you see this thrown at the E_STRICT level by PHP, then you need to let PHP know which timezone the server is currently running in, by either running the following function in PHP:


… where Europe/London is a supported timezone or setting it in php.ini:

date.timezone = "Europe/London"
  • By: Andrew Kirkpatrick
  • In: PHP
  • Under: