php-date

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

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.

Weitere Informationen über Formatierungsoptionen

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Bild-CAPTCHA
Enter the characters shown in the image.