Hi,
Just a few questions for implementing relative time as a string for dashboard views.
I am trying to use the formatDateRelative formatter, which works but there doesn’t appear to be any documentation for how to format the relative time. Currently, with no format string the relative time between events appear as:
“a few seconds ago”
"in 5 days
“in 10 days”
I would prefer to be able to format the relative time to round to the days and output this just as the decimal string without any additional words.
A secondary issue I am seeing with this formatter is that if we consider the format as:
{{formatDateRelative value relativeTo}}
Then the formatter receives no value the string returns “a few seconds ago” automatically (i.e it takes the current time automatically). Could this possibly be disabled? I imagine for most applications reporting the current time when an attribute isn’t available is undesired behaviour.
Thank you