Issue Bug Closed

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

Sven Burkert 02/15/18, 11:35 updated 03/09/20, 08:38

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.