Php date()

From Elch-Wiki
Jump to navigationJump to search

Fehlermeldung:

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.

Die Meldung wird in ext/date/php_date.c "DATE_TZ_ERRMSG" erzeugt. Überall wo DATE_TZ_ERRMSG verwendet wird (Zeilen 889, 911, 923, 939 bei PHP 5.3.10), die Ausgabe auskommentieren.