Grant Gainey edited this page Dec 12, 2016 · 2 revisions


Spacewalk shows timestamps in lot of places of the user interface. Those timestamps require the user to think about them.


Human dates

The patch allows to see the dates in a human format that is natural to the user.


You can still hover and see details. Even more, the generated tag is a semantic tag that has the timestamp in the attributes, so javascript can still access the original data.


And of course, it is localized...



It adds a rhn:formatDateHuman that is used very similarly to fmt:formatDate.

The tag implementation uses for the formatting.

Alternative implementations

An alternative implementation is to do the change in the browser itself using

In this case there is some extra work required in order to wire the locales right with the user preferences so that the right version of the .js is laoded and displayed. This is much easier in the Java side.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.