Bug #82491

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

Added by Martin Eberle about 4 years ago. Updated over 1 year ago.

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

100%

Estimated time:
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()Closed2019-03-16

Actions
#1

Updated by Riccardo De Contardi over 2 years 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 over 2 years ago

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

Updated by Benni Mack over 1 year ago

The good news:

Just tested this - in TYPO3 v9 this works just fine when using site handling!

#4

Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64045

#5

Updated by Gerrit Code Review over 1 year ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64045

#6

Updated by Benni Mack over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#7

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF