#94308f:format.date should use $GLOBALS['EXEC_TIME'] instead of 'now'
Description
The ‘now’ attribute in the DataTime-Object of PHP Function depends on the internal clock.
Two Viewhelper may show the different time like in this example
$first = new DateTime('now');
sleep(2);
$second = new DateTime('now');
echo($first->format("Y-m-d H:i:s"));
echo("\n");
echo($second->format("Y-m-d H:i:s"));
If the date-parameter is an empty string, TYPO3 should use
@ $date = $GLOBALS[‘EXEC_TIME’] ?? time(); $date = ‘now’;@.
instead of
If this is fixed, the documentation should changed, too.