Project

General

Profile

Actions

Bug #57355

closed

ViewHelper format.date not encoding entities

Added by Gonçal Carrero about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2014-03-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

We have a template in which we have a <f:format.date format="%B">@{eventDate.dateTimeStamp}</f:format.date> this outputs the month
localised. It works well, but the problem is that some months are not showing because they have entities not encoded. For example if month is March but localised in Catalan (Març), this month is not showing.

Our solution at this moment is change line 114 of the viewhelper:

return strftime($format, $date->format('U'));

for:

return htmlentities(strftime($format, $date->format('U')));

Actions

Also available in: Atom PDF