Hi,
I am unable to use the Date.add function.
test = ${Date.add(Date.create('today'), '2 days')}
Doesn’t work.
I have to edit the file DateHelper.php (Neos.Eel)
/**
* Add an interval to a date and return a new DateTime object
*
* @param \DateTime $date
* @param string|\DateInterval $interval
* @return \DateTime
*/
public function add($date, $interval)
{
I added this line -->
$interval = date_interval_create_from_date_string($interval);
------
if (!$interval instanceof \DateInterval) {
$interval = new \DateInterval($interval);
}
$result = clone $date;
return $result->add($interval);
}
Does the date.add function work for anyone without date_interval_create_from_date_string() ?
Thanks in advance
Bernd