Errore timezone settings

Se vi dovesse capitare un errore del genere:

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.

Per correggere l'errore basta inserire il seguente codice nel file \sites\default\settings.php :

ini_set('date.timezone', date_default_timezone_get());

vedi: http://groups.drupal.org/node/17970#comment-179313

Nessun commento:

Posta un commento