Adding multiple timeago in the same label
I have a tile that shows servers in Maintenance Mode.
In the sub-label, I want to add some information about the maintenance window (dates, comments, etc.).
The way maintenanceMode.startTime is showing isn’t really readable (for example: 1521138318807) so I am using timeago to show something more meaningful: {{timeago(maintenanceMode.startTime)}}
I also want to show the Scheduled End Time. As soon as I add a second timeago, both stop appearing: {{timeago(maintenanceMode.startTime)}}{{timeago(maintenanceMode.scheduledEndTime)}}
Is there a way to use timeago more than once in the same label?
Also, is there an alternative to timeago to convert the date format?
Thanks
You can change the time issues according to this post:
https://goo.gl/vCXXk6
Try this for the sublabel:
{{timeago(maintenanceMode.startTime)}} <br> {{timeago(maintenanceMode.scheduledEndTime)}}
Answer this question
To reply or comment, use the 'Comment' link on the relevant answer or question.