Nachdem der Server auf php 5.3 umgestellt wurde, gab es Probleme mit dem Datum. Hier mal eine typische Meldung, abhängig vom Modul wunderground (bezieht sich aber auf die ganze Installation, da die timezone-settings betroffen sind):
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 'Europe/Berlin' for 'CEST/2.0/DST' instead in .../wunderground.module on line 374.
Die einfache Lösung, bezogen auf die Drupalinstallation, man fügt in die settings.php folgende Zeile ein:
ini_set('date.timezone', 'Europe/Berlin');
Danach gibt es keine Fehlermeldungen mehr...
Kommentare
Kommentar hinzufügen