Page tree
Skip to end of metadata
Go to start of metadata

On This Page:

Revive Adserver Installation Fails: Warnings about date_default_timezone_get() not being safe rely on the system's timezone settings.

A troubleshooting guide to help when Revive Adserver won't install with a warning about date_default_timezone_get() not being safe to rely on the system's timezone settings.



During a new installation of Revive Adserver, Revive Adserver gives an error similar to the following:

Warning: date_default_timezone_get(): 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 the
timezone 'UTC' for now, but please set date.timezone to select your timezone.
in /path/to/your/revive-adserver/variables.php on line 67

Troubleshooting Process

To ensure that campaigns & banners start/stop correctly, that date/time based delivery rules work correctly, and that statistics are recorded correctly, Revive Adserver needs to know what the date/time is. It can only do this if:

  • The clock on the server hosting Revive Adserver is set to the correct date/time; and
  • PHP is correctly configured so that Revive Adserver knows what timezone the date/time of the server is set in.

Accordingly, this warning will be displayed if Revive Adserver detects that you have not configured PHP with the timezone of your server.

To correct the issue, edit your php.ini file, and set the date.timezone value to one of PHP's supported timezones

  1. Note that you may need to uncomment the date.timezone value and restart your webserver for the change to come into effect.
  2. If the changes do not appear to be coming into effect, check using a PHP file containing the phpinfo() function that you are editing the correct php.ini file.



  • No labels