Bug #82491

FluidStyledContent Header/Date.html Partial should respect config.locale_all typoscript setting for date format frontend output

Added by Martin Eberle over 1 year ago. Updated 2 months ago.

Status:
New
Priority:
Should have
Assignee:
Category:
Fluid Styled Content
Start date:
2017-09-15
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The partial for rendering the header date in fluid_styled_content (Resources/Private/Partials/Header/Date.html) currently does not respect the typoscript setting of config.locale_all. The partial is:

<f:if condition="{date}">
<p class="{positionClass}">
<time datetime="{date > f:format.date(format: '%Y%m-%d')}">
<f:format.date format="%B %e, %Y">{date}</f:format.date>
</time>
</p>
</f:if>

Instead of "%B %e, %Y" there should be the setting depending on config.locale_all.

So, at the moment it is necessary to override the header partials only to localize the date.


Related issues

Related to TYPO3 Core - Feature #87935: Use $_SERVER['REQUEST_TIME'] instead of time() for the current time in viewhelper f:date.format() Closed 2019-03-16

History

#1 Updated by Riccardo De Contardi 2 months ago

My 2 cents: it would be nice to add a "Date format" section in the Site Configuration module (in Languages Tab > Locales) and use that configuration. With a fallback to config.locale_all if nothing is provided.

#2 Updated by Benni Mack 2 months ago

  • Related to Feature #87935: Use $_SERVER['REQUEST_TIME'] instead of time() for the current time in viewhelper f:date.format() added

Also available in: Atom PDF