Seite 1 von 1

Lokale Installation: function.date-Error

Verfasst: 24.01.2011 17:39
von Crizzo
Hi!

Ich wollte einfach nur ein Standard phpBB3.0.8 DE lokal auf meinem xampp installieren.
Also:
- runtergeladen
- entpackt --> Install angesurft

Doch nach dem Erstellen des Admin-Kontos und der nächsten Setup Seite kommt schon das erste Mal dieser Fehler:

Code: Alles auswählen

[phpBB Debug] PHP Notice: in file /index.php on line 86: 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/Paris' for  '1.0/no DST' instead
[phpBB Debug] PHP Notice: in file /index.php on line 86: getdate() [function.getdate]:  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/Paris' for  '1.0/no DST' instead
Wenn ich dann direkt /forum/ ansurfe, kommt die Meldung ich solle bitte "install" löschen. Sobald das geschehen ist, kommt der Fehler von oben wieder.

Wieso denn das?

Xampp 1.7.2. für Windows

Gruß
Crizzo

Re: Lokale Installation: function.date-Error

Verfasst: 24.01.2011 18:23
von Mahony
Hallo
Suche benutzen viewtopic.php?p=1203724#p1203724
Hallo
Hier die Lösung für dein Problem --> http://www.phpbb.com/community/viewtopi ... &t=1634115
ToonArmy hat geschrieben:Set the required setting (date.timezone) in php.ini and these messages will go away.
oder Alternativ
Dog Cow hat geschrieben:Alternatively, one may set

Code: Alles auswählen

// Set time zone
    date_default_timezone_set('UTC');
At the top of common.php

Grüße: Mahony

Re: Lokale Installation: function.date-Error

Verfasst: 24.01.2011 18:35
von Crizzo
Hi, Mahony.

Gut, danke.

Wer wissen möchte wie das xampp geht:

Öffne: \xampp\php\php.ini
FINDE:

Code: Alles auswählen

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone = 
ERSETZE MIT:

Code: Alles auswählen

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Europe/Berlin"
Infos zur date.timezone: http://www.php.net/manual/de/datetime.c ... e.timezone

Dann läuft es ohne Probleme. :)

Gruß
Blackhawk