Steffen
Well-known member
The template functions "floor" and "ceil" exist but "round" is missing. I'm trying to compute the number of days until a warning / ban expires and a "round" function would be useful.
Code:
<xf:set var="$expiryDays" value="{{ round(($ban.end_date - $ban.ban_date) / 86400) }}" />
Upvote
1