Warning: getdate(): It is not safe to rely on the system's

Gesperrt
ewein
Beiträge: 2
Registriert: Mi 14. Aug 2013, 16:35
Kontaktdaten:

Warning: getdate(): It is not safe to rely on the system's

Beitrag von ewein » Do 17. Jul 2014, 10:10

Hallo Forum,

es ist ein ausgelutschtes Thema, aber ich habe im Moment massiv damit zu kämpfen.
Folgende Fehlermeldungen bekomme ich mit Contenido 4.8.18 auf eimen Dedicated Server von 1&1 mit openSuse 13.1 und Plesk 12

Warning: 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /srv/www/vhosts/fashion-square-shopfinder.de/httpdocs/contenido/includes/pseudo-cron.inc.php on line 306

Warning: 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /srv/www/vhosts/fashion-square-shopfinder.de/httpdocs/contenido/includes/pseudo-cron.inc.php on line 334
usw.

ich habe die php.ini geändert von UTC in Europe/Berlin restart durchgeführt, hat leider nicht genutzt.
Hat oder hatte vielleicht jemand ebenfalls dieses Problem mit Suse 13.1 und Plesk12 ?

google gibt leider auch nichts her.

Mit freundlichen Grüßen
Ernst Weingart :(

Oldperl
Beiträge: 4255
Registriert: Do 30. Jun 2005, 22:56
Wohnort: Eltmann, Unterfranken, Bayern
Kontaktdaten:

Re: Warning: getdate(): It is not safe to rely on the system

Beitrag von Oldperl » Do 17. Jul 2014, 12:32

Hallo Ernst,
ewein hat geschrieben:google gibt leider auch nichts her.
"Nichts" ist da aber schon sehr relativ :roll: :arrow: Suchbegriff: getdate(): It is not safe to rely on the system's timezone settings
Gleich der 2. Eintrag führt mich nach :arrow: http://php.net/manual/de/function.date- ... ne-set.php
Dort findet man dann entsprechende Infos (auch in den Comments).

Für Contenido kann man dann sowohl in der php.ini oder in einer config.local.php entsprechend vorgehen. Eine Kontrolle mit einer info.php Datei zeigt dann ob es auch funktioniert.

Ergänzung: Solltest du mit einer php.ini im FTP-Verzeichnis bei 1und1 arbeiten - ich kann mich erinnern das diese bei 1und1 je nach Paket in "jedem" Unterverzeichnis auch rein musste um auch für die dort enthaltenen Datein zu greifen. Ob man das inzwischen geändert hat, keine Ahnung.

Gruß aus Franken

Ortwin
ConLite 2.1, alternatives und stabiles Update von Contenido 4.8.x unter PHP 7.x - Download und Repo auf Gitport.de
phpBO Search Advanced - das Suchwort-Plugin für CONTENIDO 4.9
Mein Entwickler-Blog

Gesperrt