Project

General

Profile

Bug #21045

Ensure dates are printed consistently with core

Added by Marek Hulán almost 2 years ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
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

Related to Foreman - Feature #19047: Unify the way how we display datesClosed2017-03-28
Blocked by Bastion - Feature #21311: Allow adding multiple js and style tags from pluginsClosed2017-10-12
Blocked by Foreman - Feature #21312: Foreman should provide react components for formatting datesClosed
Blocked by Foreman - Feature #21180: Add 3rd party js libraries in pluginsClosed2017-10-03
Copied from OpenSCAP - Refactor #21038: Ensure dates are printed consistently with coreClosed2017-09-20

Associated revisions

Revision c9ad1a64 (diff)
Added by Tomáš Strachota 8 months ago

Fixes #21045 - React components for formatting dates

Adds angular directives that use react components from the foreman
to provide consistent date and time formatting.

Revision 4021cb1c (diff)
Added by Tomáš Strachota 8 months ago

Refs #21045 - unnest dates props

Revision bf0634de (diff)
Added by Tomáš Strachota 8 months ago

Refs #21045 - Date renamed to IsoDate

History

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

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

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

#3 Updated by Justin Sherrill almost 2 years ago

  • Target version set to 219
  • Legacy Backlogs Release (now unused) set to 114

#4 Updated by Justin Sherrill almost 2 years ago

  • Target version changed from 219 to 218

#5 Updated by Walden Raines almost 2 years ago

  • Assignee set to Tomáš Strachota

#6 Updated by Walden Raines almost 2 years ago

  • Target version changed from 218 to 224

#7 Updated by Tomáš Strachota almost 2 years ago

  • Status changed from New to Assigned

#8 Updated by Tomáš Strachota almost 2 years ago

  • Blocked by Feature #21311: Allow adding multiple js and style tags from plugins added

#9 Updated by Tomáš Strachota almost 2 years ago

  • Related to Feature #21312: Foreman should provide react components for formatting dates added

#10 Updated by The Foreman Bot almost 2 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7001 added

#11 Updated by Tomáš Strachota almost 2 years ago

  • Related to deleted (Feature #21312: Foreman should provide react components for formatting dates)

#12 Updated by Tomáš Strachota almost 2 years ago

  • Blocked by Feature #21312: Foreman should provide react components for formatting dates added

#13 Updated by Tomáš Strachota almost 2 years ago

  • Blocked by Feature #21180: Add 3rd party js libraries in plugins added

#14 Updated by Walden Raines almost 2 years ago

  • Target version changed from 224 to 228

#15 Updated by Walden Raines almost 2 years ago

  • Target version changed from 228 to 234

#16 Updated by Walden Raines over 1 year ago

  • Target version changed from 234 to 237

#17 Updated by Walden Raines over 1 year ago

  • Target version changed from 237 to 239

#18 Updated by Walden Raines over 1 year ago

  • Target version changed from 239 to 243

#19 Updated by Walden Raines over 1 year ago

  • Target version changed from 243 to 248

#20 Updated by The Foreman Bot over 1 year ago

  • Legacy Backlogs Release (now unused) deleted (114)

#21 Updated by Andrew Kofink over 1 year ago

  • Legacy Backlogs Release (now unused) set to 338

#22 Updated by Walden Raines over 1 year ago

  • Target version changed from 248 to 250

#23 Updated by Walden Raines over 1 year ago

  • Target version changed from 250 to 253

#24 Updated by Walden Raines about 1 year ago

  • Target version deleted (253)

#25 Updated by Jonathon Turel about 1 year ago

  • Target version changed from Katello 3.7.0 to Katello 3.9.0
  • Tracker changed from Refactor to Bug

#26 Updated by Zach Huntington-Meath 11 months ago

  • Target version changed from Katello 3.9.0 to Katello Backlog

#27 Updated by Tomáš Strachota 8 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF