[TYPO3-mvc] TYPO3 (TSFE) uses config.locale_all, fluid does not
Christian Zenker
christian.zenker at 599media.de
Fri Aug 6 09:08:08 CEST 2010
Hi Steffen.
As this seems to be a widely encountered issue, I wrote a ViewHelper in
the incubator that uses strftime() instead of date(). This way it allows
for localized strings. The syntax is different though, so have a look at
the strftime() doc on php.net.
http://forge.typo3.org/projects/package-viewhelperincubator/repository/show/DateTimeViewHelper
http://php.net/manual/en/function.strftime.php
Christian.
On Fri, 06 Aug 2010 08:59:21 +0200, Steffen Ritter <info at rs-websystems.de>
wrote:
> Am 06.08.2010 08:54, schrieb Steffen Ritter:
>> Hey folks,
>> I currently stumbled over strange behaviour:
>> My Dates I'm rendering with "format.date" write: 27. July 2010
>> Rendering the same timestamp via TS results to 27. Juli 2010.
>>
> OK: I will answer myself...
>
> Fluid ViewHelper uses DateTime::format(), according to Notes at [1]
> this does not respect locales, date should be used.
>
> Therefore this is a bug based on missing feature in php.
>
> [1] http://www.php.net/manual/en/datetime.format.php
More information about the TYPO3-project-typo3v4mvc
mailing list