-
Sub-task
-
Resolution: Done
-
Undefined
-
None
-
None
-
False
-
-
False
-
0
-
Phoenix
-
-
-
Sprint 134, Sprint 135, Sprint 136, Sprint 137, Sprint 138, Sprint 139, Sprint 140, Sprint 141
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
QE Tracker for https://issues.redhat.com/browse/SAT-24064
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2270505