Bug #4972

f:format.date does not respect locale.

Added by Nikolas Hagelstein about 12 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-10-12
Due date:
% Done:

0%

Estimated time:
Has patch:

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

Has duplicate TYPO3.Fluid - Story #5583: DateFormat View Helper doesn't respect locale settingClosed2009-11-30

Actions
#1

Updated by Bastian Waidelich about 12 years ago

  • Project changed from 534 to TYPO3.Fluid
  • Category deleted (432)
#2

Updated by Karsten Dambekalns about 12 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 about 12 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 about 12 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 over 10 years ago

  • Status changed from New to Closed

closed, as it's a PHP missing feature so far.

Also available in: Atom PDF