It looks weird, but catch it

We need to set the field in UTC, so we need to get the timezone time difference.
Code:
$end=datetime\format(targetEntity\attribute('createdAt'),'UTC','YYYY-MM-DD 10:00');
$minutesDiff=datetime\diff(datetime\now(),datetime\format(datetime\now(),null,'YYYY-MM-DD HH:mm'),'minutes');
$end=datetime\addMinutes($end, $minutesDiff);
dateEnd=$end;
With Workflow UI it is not possible for now. You can get targetEntity attributes with Entity Manager

Leave a comment: