Project

General

Profile

Actions

Bug #21045

closed

Ensure dates are printed consistently with core

Added by Marek Hulán over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Foreman 1.16 introduced two helpers that should be used whenever date/time information is printed.

date_time_absolute(time, format = :short)
date_time_relative(time)

If it's applicable, the Foreman dependency of a plugin should be bumped to 1.16. In Katello specifically it might be more complicated as the bastion can't use helpers directly. I see two ways, either doing the same in bastion or having server generating this date in right format and bastion just wrapping it with the right tags.


Related issues 4 (0 open4 closed)

Related to Foreman - Feature #19047: Unify the way how we display datesClosedMarek Hulán03/28/2017Actions
Blocked by Foreman - Feature #21312: Foreman should provide react components for formatting datesClosedTomáš StrachotaActions
Blocked by Foreman - Feature #21180: Add 3rd party js libraries in pluginsClosedOndřej Pražák10/03/2017Actions
Copied from OpenSCAP - Refactor #21038: Ensure dates are printed consistently with coreClosed09/20/2017Actions
Actions

Also available in: Atom PDF