Project

General

Profile

Actions

Bug #83916

closed

ViewHelper f:format.date can't handle unix timestamp > 2147483648

Added by Sven Burkert about 6 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Must have
Category:
Reports
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Fluid, timestamp, int, bigint
Complexity:
Is Regression:
Sprint Focus:

Description

This Fluid

<f:format.date>2247483648</f:format.date>

results in
#1241722579: "2247483648" could not be parsed by \DateTime constructor: DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character (More information)

Problem is function MathUtility::canBeInterpretedAsInteger in DateViewHelper, which checks the unix timestamp for integer. But unix timestamp is no integer, it can be much larger than an integer.

Actions

Also available in: Atom PDF