Page 1 of 1
[Gelöst] Datum News Module
Posted: Sun Mar 21, 2010 9:38 am
by heinzw
Hallo,
ich bekomme im News-Module für März keinen Umlaut sondern ein Quadrat angezeigt (auch schon beim Erstellen). Außerdem ist das Format amerikanisch (M?r 20, 2010).
Das erste liegt wohl am Zeichensatz. Das Zweite woran?
Dank im Voraus
Heinz
Re: Datum News Module
Posted: Sun Mar 21, 2010 10:13 am
by engel1963
In der config.php eintragen
Code: Select all
$config['locale'] = 'de_DE.utf-8';
Re: Datum News Module
Posted: Sun Mar 21, 2010 10:21 am
by heinzw
Vielen Dank.
Die Umlaute sind da, aber das Format ist noch immer Mär 20, 2010.
Re: Datum News Module
Posted: Sun Mar 21, 2010 11:57 am
by hibr
heinzw wrote:
Vielen Dank.
Die Umlaute sind da, aber das Format ist noch immer Mär 20, 2010.
du kannst das Datumsformat in dem (den) jeweiligen(m) News-Template(s) angeben, mittels "cms_date_format", z.B.
Code: Select all
{$entry->postdate|cms_date_format:"%a. %d.%m.%Y"}
Ausgabe für heute nach obigem Format: So. 21.03.2010
Fürs Format siehe:
http://de.php.net/strftime
Gruß Hani
PS: Man kann das Standard Datumsformat auch über ADMINISTRATION->GLOBALE EINSTELLUNGEN->ALLGEMEINE EINSTELLUNGEN->Standard Datumsformat einstellen. Ich bin aber nicht mehr sicher, ob diese Einstellung das News-Modul verwendet. Mittels obigen Tipp kann man das Datumsformat individuell einstellen, auf Wunsch auch mit Uhrzeit.
Re: Datum News Module
Posted: Sun Mar 21, 2010 12:15 pm
by heinzw
Ich danke für die schnelle Hilfe.
Gruß
Heinz
Re: Datum News Module
Posted: Mon Mar 22, 2010 7:13 am
by cyberman
hibr wrote:
Ich bin aber nicht mehr sicher, ob diese Einstellung das News-Modul verwendet.
Ja, es wird

!
Re: [Gelöst] Datum News Module
Posted: Sun May 02, 2010 6:28 pm
by mike-r
Danke auch von mir.