Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Duration in the format of W days X hours Y minutes Z seconds in Events page
-
Hi,
I would like to know if it is possible to configure Mango so that the Duration field can be shown in the format of W:X:Y:Z (W days X hours Y minutes Z seconds) in the Events page.
For example, instead of showing (1) a few seconds, (2) 16 hours, (3) 24 minutes, etc, it will show (1) 00:00:00:03, (2) 00:00:16:15, (3) 00:00:24:12.

BR,
Ricardo -
Hi Ricardo,
There is not a setting to modify how that duration is formatted currently.
If one wanted to achieve something like this, they could create a modified, custom version of the
<ma-events-table></ma-events-table>directive and modify the Moment.js function invoked on the duration in the durationFilter.js from 'humanize' at https://github.com/infiniteautomation/ma-dashboards/blob/main/UI/web-src/ngMango/directives/eventsTable.html#L72 to a function that results in the format you seek. Then you could use this modified directive (you'd have to give it a different name) on custom pages.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login