MyBB.de Forum
Zeitzone - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Archiv (https://www.mybb.de/forum/forum-57.html)
+--- Forum: MyBB 1.4.x (https://www.mybb.de/forum/forum-51.html)
+---- Forum: Allgemeiner Support (https://www.mybb.de/forum/forum-52.html)
+---- Thema: Zeitzone (/thread-16191.html)



Zeitzone - hafgan - 07.05.2010

Hallo,

Monatelang lief unser mybb ohne Warnungen. Ich habe nun den Server auf eine aktuelle Linux-Distribution upgedatet. Irgendwie ist anscheinend die Umgebung fürs Forum nun etwas anders:

Ich bekomme Warnungen, dass die Zeitzone nicht definiert ist:
Code:
Warning [2] 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 - Line: 536 - File: admin/modules/tools/system_health.php PHP 5.3.1 (Linux)

Ich weiss damit nichts anzufangen. Soll ich in der Datei system_health.php was ändern?

Kann mir jemand einen Hinweis geben?

hafgan


RE: Zeitzone - Michael Malin - 07.05.2010

Hm...
Was hast du bei den Zeiteinstellungen (im ACP)?
Welche PHP-Version hast du?


RE: Zeitzone - hafgan - 07.05.2010

Hi,

Zitat:Was hast du bei den Zeiteinstellungen (im ACP)?
Unter "Datums und Zeitformat":
Datumsformat: d.m.Y
Zeitformat: H:i
Format des Registrierungsdatums: M Y
Standard-Zeitzone: GMT+1:00
Sommerzeitkorrektur: Ja

Zitat:Welche PHP-Version hast du?
Code:
PHP 5.3.1 (cli) (built: Feb 15 2010 17:27:14)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies



RE: Zeitzone - frostschutz - 07.05.2010

ggf. den Hoster bitten date.timezone zu setzen

in php.ini

Code:
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Europe/Berlin

EDIT:
Ach, eigener Server. Selber machen! Toungue


RE: Zeitzone - hafgan - 07.05.2010

THANX!!!!

Kleine Ursache, große Wirkung!!! Smile


RE: Zeitzone - frostschutz - 07.05.2010

Der übliche PHP Schwachsinn halt.


RE: Zeitzone - atriu - 23.01.2011

Hallo zusammen,
mein Forum hat heute folgedes ausgespuckt:
Code:
Folgende Warnungen sind aufgetreten:
Warning [2] mktime(): 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 - Line: 1454 - File: C:\Inetpub\wwwroot\WOW\member.php PHP 5.3.4 (WINNT)
File    Line    Function
[PHP]         errorHandler->error
C:\Inetpub\wwwroot\WOW\member.php    1454    mktime
Warning [2] 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 - Line: 1454 - File: C:\Inetpub\wwwroot\WOW\member.php PHP 5.3.4 (WINNT)
File    Line    Function
[PHP]         errorHandler->error
C:\Inetpub\wwwroot\WOW\member.php    1454    date

Ich habe die oben genannte Änderung in der "php.ini" vorgenommen, sie ist jedoch wirkongslos.

Wo könnte der Fehler noch liegen?

Danke im Vorraus
atriu


RE: Zeitzone - StefanT - 23.01.2011

1) Wenn du es in der PHP.ini einträgst, sollte das Problem behoben sein.
2) Bei der aktuellen MyBB-Version sollte das auch gar nicht mehr auftreten.


RE: Zeitzone - atriu - 23.01.2011

hätte vileicht mal das ";" vor der definition entfernen sollen.
peinlich peinlich Blush