Bug 1759776 - timezone difference in PDF and CSV/TXT reports
Summary: timezone difference in PDF and CSV/TXT reports
Keywords:
Status: CLOSED DUPLICATE of bug 1599849
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Reporting
Version: 5.10.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.10.13
Assignee: drew uhlmann
QA Contact: Parthvi Vala
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-09 05:35 UTC by Rahul Chincholkar
Modified: 2019-12-18 03:20 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-15 13:16:08 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:
mfeifer: mirror+


Attachments (Terms of Use)

Description Rahul Chincholkar 2019-10-09 05:35:12 UTC
Description of problem:
Reports created always shows the UTC time for `date and time` fields in a report.

Note: Appliance Time Zone is set to "(GMT+5:30) Kolkata" in 'Configuration'

- See screenshot `Report1-UTC.png` which shows the `Date Created` field in UTC.
- Downloaded PDF report and shows UTC time in the report. (See attachment, Report2-UTC.pdf)
- Downloaded CSV report and shows IST time in the report. (See attachment, Report3.CSV.pdf)

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

How reproducible:
Always

Steps to Reproduce:
1. Set Appliance time zone to your timezone in appliance Configuration other than UTC
2. Create a report including `date and time` fields
3. Queue and download PDF and CSV format of the same reports.
4. Notice the timezone different in the downloaded reports.

Actual results:
Report fields are using UTC timezone

Expected results:
Reports should show the timezone configured in "Appliance Time Zone"

Additional Information:
I have created this separate bugzilla based on comment:
https://bugzilla.redhat.com/show_bug.cgi?id=1758549#c7

Comment 3 drew uhlmann 2019-10-11 15:50:48 UTC
Hey Rahul, could I please ask you to retest on a later 5.10? I don't think you'll see the issue on 5.10.11 or 5.10.12

Comment 4 drew uhlmann 2019-10-11 16:16:45 UTC
I can't reproduce this on up-to-date master. It's in UTC because the zone was wrong pre merge of https://github.com/ManageIQ/manageiq/pull/19285. I think any version of 19285 will show the correct timezone, and I think this is a dup of https://bugzilla.redhat.com/show_bug.cgi?id=1743535.

Comment 5 drew uhlmann 2019-10-11 16:24:56 UTC
* sorry, any build version that includes 19825

Comment 7 Rahul Chincholkar 2019-10-14 06:34:21 UTC
Drew, Are we expecting to merge the fix - https://github.com/ManageIQ/manageiq/pull/19285 with 5.10.x ?

Comment 8 drew uhlmann 2019-10-14 11:23:58 UTC
Oh, I forgot it hadn't been backported yet. Yes, sorry.


Note You need to log in before you can comment on or make changes to this bug.