Bug #4972
f:format.date does not respect locale.
Status: | Closed | Start date: | 2009-10-12 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | - | |||
Target version: | - | |||
Has patch: | Affected Flow version: |
Description
The fluid date helper does not respect the locale date format set by e.g. setlocale.
This issue is causef by the fact that the viewhelper makes use of PHP's DateTime object internally which isn't capable of locale time formats. Currently only "strftime" seems respect locales.
Related issues
History
#1 Updated by Bastian Waidelich almost 6 years ago
- Project changed from Extbase MVC Framework to TYPO3.Fluid
- Category deleted (
432)
#2 Updated by Karsten Dambekalns almost 6 years ago
Then use return strftime($format, $date->getTimestamp());
- but the format string must be different then, sigh.
And why the heck is there no locale-aware date formatting on DateTime? Grr.
#3 Updated by Nikolas Hagelstein almost 6 years ago
Karsten Dambekalns wrote:
Then use
return strftime($format, $date->getTimestamp());
- but the format string must be different then, sigh.And why the heck is there no locale-aware date formatting on DateTime? Grr.
That is what i asked myself aswell when i came accross this issue :|
#4 Updated by Karsten Dambekalns over 5 years ago
Karsten Dambekalns wrote:
And why the heck is there no locale-aware date formatting on DateTime? Grr.
Probably because http://devzone.zend.com/article/4799-Internationalization-in-PHP-5.3#Date_formatter is the way to go now...
#5 Updated by Sebastian Kurfuerst about 4 years ago
- Status changed from New to Closed
closed, as it's a PHP missing feature so far.