Uploaded image for project: 'OpenShift Console'
  1. OpenShift Console
  2. CONSOLE-3153

Expose APIs for displaying date/time

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • HAC Infra - Sprint 220

      We have a Timestamp component for consistent display of dates and times that we should expose through the SDK. We might also consider a hook that formats dates and times for places were you don't want or cant use the component, eg. times on a chart. 

      This will become important when we add a user preference for dates so that plugins show consistent dates and times as console. If I set my user preference to UTC dates, console should show UTC dates everywhere.

       

      AC:

      • Expose the Timestamp component inside the SDK. 
      • Replace the connect with useSelector hook
      • Keep the original component and proxy it to the new one in the SDK

       

       

       

      cc jhadvig@redhat.com showeimer 

            sgoodwin_redhat Steve goodwin
            spadgett@redhat.com Samuel Padgett
            Andrew Ballantyne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: