value_format to show Duration in Days Hours Minutes Seconds doesn't work

I am trying to create a visualization to show the duration as dd days hh hours mm minutes ss seconds format. So the number 1.5 should come up as 01 days 12 hours 0 minutes 0 seconds.


I am using 

value_format: "d\"days\" h\"h\" m\"m\" s\"s\""

It works fine when the number of days is greater than 0. But when it is 0 days, it shows up as 31 days. Any suggestion on what we are doing wrong?

0 4 5,163
4 REPLIES 4
Top Labels in this Space
Top Solution Authors