Currently, we use relative-time package to convert timestamp to a human readable relative time, when
displaying published time of the bug in the list page.
Using this approach is not optimised as it changes the texts in the loading time and leads to CLS issues.
This change replaces relative-time lib in favour of a new template tag which converts the published to a human readable relative time using a utility function.
issue: https://github.com/google/osv.dev/issues/1013
Currently, we use relative-time package to convert timestamp to a human readable relative time, when displaying published time of the bug in the list page.
Using this approach is not optimised as it changes the texts in the loading time and leads to CLS issues.
This change replaces relative-time lib in favour of a new template tag which converts the published to a human readable relative time using a utility function.
Before:
After: