Seite 1 von 1

Fehlermeldung date.timezone setting

Verfasst: 11.05.2011 12:15
von alexanderjoseph
Hallo zusammen.
Wenn ich einen Beitrag ansehe bekomme ich die Meldung
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 993: date() [function.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. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead.
In der PHP-Information bekomme ich das folgende angezeigt.
date
[phpBB Debug] PHP Notice: in file /includes/acp/acp_php_info.php on line 40: phpinfo() [function.phpinfo]: 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
date/time support: enabled
"Olson" Timezone Database Version: 0.system
Timezone Database: internal
Default timezone: Europe/Berlin
Kann mir da jemand weiterhelfen?
Viele Grüße
Alexander

Re: Fehlermeldung date.timezone setting

Verfasst: 11.05.2011 12:26
von Charlie_M

Re: Fehlermeldung date.timezone setting

Verfasst: 11.05.2011 12:48
von alexanderjoseph
Super! :grin:
Der Tip mit dem zufügen von
// Set time zone
date_default_timezone_set('UTC');
zur common.php hat geholfen.
Man muss nur wissen wo suchen.
Viele Grüße
Alexander