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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Grant Gainey edited this page Dec 12, 2016
·
2 revisions
Problem
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...
Implementation
It adds a rhn:formatDateHuman that is used
very similarly to fmt:formatDate.
An alternative implementation is to do the change in the browser itself using http://momentjs.com.
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.