[Typo3-UG Oesterreich] Datumsformatierung

Jakob Kristoferitsch e0326697 at student.tuwien.ac.at
Fri Sep 3 15:00:21 CEST 2004


Ich möchte einen Timestamp gerne in einem Plugin als Datum in der Form
1. Oktober 04 formatieren, ich verwende dazu folgenden Code:

$GLOBALS["TSFE"]->config["config"]["locale_all"]=$conf["locale"];
//$conf["locale"] hat den Wert "deutsch", ich habs auch mit "de_DE" versucht
$content=strftime("%e. %B %y",$row["start"]);
//$row["start"] enthält den Timestamp, z.B.:1096754400
$content.=$GLOBALS["TSFE"]->config["config"]["locale_all"];

Output:
. October 04

1.) Warum fehlt der Tag des Monats (sollte mit %e erzeugt werden)
2.) Warum ist der Monatsname Englisch, obwohl ich locale_all auf deutsch
gesetzt habe.

Danke für alle Antworten
Jakob Kristoferitsch






More information about the TYPO3-at mailing list