Project

General

Profile

Refactor #21044

Ensure dates are printed consistently with core

Added by Marek Hulán almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
easy
Triaged:
No
Bugzilla link:
Pull request:
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


Related issues

Related to Foreman - Feature #19047: Unify the way how we display datesClosed2017-03-28
Copied from OpenSCAP - Refactor #21038: Ensure dates are printed consistently with coreClosed2017-09-20

History

#1 Updated by Marek Hulán almost 5 years ago

  • Copied from Refactor #21038: Ensure dates are printed consistently with core added

#2 Updated by Marek Hulán almost 5 years ago

Also available in: Atom PDF