Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-24064

No way to print the current time along with current date while generating a report template in Red Hat Satellite 6

XMLWordPrintable

    • Sprint 134, Sprint 135, Sprint 136, Sprint 137, Sprint 138, Sprint 139, Sprint 140, Sprint 141
    • Moderate
    • No

      Description of problem:

      For some end-users it might be needed to print the report generation time and date both in the report itself.

      We have a global macro present for printing the date only i.e. current_date . We also have a macro present to format the time if a valid time input present i.e. forman_time but none of them can give me the Full date and time.

      The end-result always is just Date or else Date with broken time.

      Version-Release number of selected component (if applicable):

      Any version of Red Hat Satellite 6 ( Tested on 6.14 )

      How reproducible:

      100%

      Steps to Reproduce:
      1. Create a report template by name test and just add these lines

      <%= current_date + "\n" -%>
      <%= format_time(current_date) + "\n" -%>

      2. Preview\Render the template

      3. Check in the Help tab for a current_time macro to work with

      Actual results:

      3. No such macro exists

      2. Rendering results:

      2024-03-20
      2024-03-20 0:00:00 +0530

      The time is wrong

      Expected results:

      There should be a macro present to print the current time as well.

      Additional info:

      NA

              jira-bugzilla-migration RH Bugzilla Integration
              rhn-support-saydas Sayan Das
              Cole Higgins Cole Higgins
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: