Project

General

Profile

Actions

Bug #82491

closed

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

Added by Marti McFlight about 7 years ago. Updated over 4 years 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 2 (0 open2 closed)

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
Related to TYPO3 Core - Bug #101211: GeneralUtility::formatSize does not use correct thousands separatorClosed2023-06-30

Actions
Actions #1

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.

Actions #2

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
Actions #3

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!

Actions #4

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

Actions #5

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

Actions #6

Updated by Benni Mack over 4 years ago

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

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions #8

Updated by Robert Vock over 1 year ago

  • Related to Bug #101211: GeneralUtility::formatSize does not use correct thousands separator added
Actions

Also available in: Atom PDF