I'm converting an integer to a time format in the Twig template system. So that total duration of seconds is converted to hh:mm:ss
.
Here is an example to how i convert hours:
{% filter round(0, 'floor') %}{{ agent.TotalCallDuration/3600 }}{% endfilter %}
Now I have to add leading zero to the hours if less than 10. I tried:
{% filter round(0, 'floor')|format('%02d') %}{{ agent.TotalCallDuration/3600 }}{% endfilter %}
But no luck..