Page 1 of 1

[GELÖST] strtotime() [function.strtotime] und strftime() [function.strftime]

Posted: Wed May 05, 2010 1:39 pm
by mörml
Ihr Lieben,

ich habe mein cms von 1.6 auf 1.7.1. upgedatet. Nach diesem Update "kapieren" die News-Boxen das Zeitformat nicht mehr. Ich habe leider keine Ahnung, wie ich die nachfolgenden Warnhinweise lesen soll. In Linie 34 z. B. zum 1. Warnhinweis finde ich nichts Erhellendes.


Warning: strtotime() [function.strtotime]: 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 /home/www/............../lib/smarty/plugins/shared.make_timestamp.php  on line 34

Warning: strftime() [function.strftime]: 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 /home/www/............../lib/smarty/plugins/modifier.date_format.php on line 53
Mai 4, 2010
blabla
Kategorie: bla
Erstellt von: blub

Warning: strftime() [function.strftime]: 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 /home/www/............../lib/smarty/Smarty_Compiler.class.php on line 400

Mein Server (WebHostOne) läuft auf php 5.3.2.
Hochgeschossen habe ich das Update mittels Filezilla.

Herzliche Grüße

mörml

Re: strtotime() [function.strtotime] und strftime() [function.strftime]

Posted: Wed May 05, 2010 2:24 pm
by mörml
UPDATE: Es ist mir tot-pein-lich! Ich schwöre, ich habe den ganzen Tag hier im Forum gesucht. Und nun finde ich den Thread "CMS Made Simple 1.7 "Cape Verde" erschienen" - und da ist mein Problem beschrieben. Also nichts für ungut.

Für alle, die sich wie ich auf der gleichen Nerd-Ebene befinden:

In die config.php muss die Zeile


date_default_timezone_set('Europe/Berlin');



eingefügt werden (ohne $-Zeichen)


Herzliche Grüße

mörml

Re: [GELÖST] strtotime() [function.strtotime] und strftime

Posted: Mon Apr 11, 2011 7:15 pm
by nils73
Danke für den Tipp! Werde das mal als Bug für den Core einstellen, denn ich habe schon unzählige Beispiele, wo das Datum nicht klappt gefunden ... es sollte im Install abgefangen werden und ins Config geschrieben ...

Gruß
Nils