Bug #82491
closedFluidStyledContent Header/Date.html Partial should respect config.locale_all typoscript setting for date format frontend output
100%
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.
Updated by Riccardo De Contardi over 5 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.
Updated by Benni Mack over 5 years ago
- Related to Feature #87935: Use $_SERVER['REQUEST_TIME'] instead of time() for the current time in viewhelper f:date.format() added
Updated by Benni Mack over 4 years ago
The good news:
Just tested this - in TYPO3 v9 this works just fine when using site handling!
Updated by Gerrit Code Review over 4 years 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
Updated by Gerrit Code Review over 4 years 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
Updated by Benni Mack over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 0d6f0460798048aa22ebaf57a254ad22d52a9d88.
Updated by Robert Vock over 1 year ago
- Related to Bug #101211: GeneralUtility::formatSize does not use correct thousands separator added