Bug 1274270

Summary: Time zone shown wrong when editing schedule
Product: Red Hat CloudForms Management Engine Reporter: Martin Welk <mwelk>
Component: UI - OPSAssignee: Roman Blanco <rblanco>
Status: CLOSED ERRATA QA Contact: Milan Falešník <mfalesni>
Severity: high Docs Contact:
Priority: high    
Version: 5.4.0CC: hkataria, jhardy, jprause, mfalesni, mfeifer, mpovolny, ngupta, obarenbo
Target Milestone: GA   
Target Release: 5.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.5.0.8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-08 13:39:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1290192, 1297005    

Description Martin Welk 2015-10-22 11:53:34 UTC
Description of problem:
In CFME, I go to Configure -> Configuration and I create a schedule (if it matters, for a database backup). I change the time zone from GMT to (GMT+01:00) Vienna. After saving and re-opening the schedule, the time zone is still Vienna, but the starting time is shown in GMT.


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

How reproducible:
100% successful

Steps to Reproduce:
1. Go to Configure -> Configuration -> Schedules
2. Add a new schedule (for a database backup)
3. Set the timezone for this schedule to (GMT+01:00) Vienna.
4. Set the time and date.
5. Save the schedule.
6. Look into the "Settings Schedules" table: it's shown fine.
7. Edit the schedule that you just created
8. In Timer, the Time Zown is shown correctly (GMT+01:00) Vienna
9. In Timer/Starting Time it shows Vienna in brackets, but the time is two hours behind, which seems to be GMT

Actual results:
See above.

Expected results:
Time is shown in the chosen time zone.

Additional info:
Schedule is executed at he expected time. Seems just to be a display issue.

Comment 6 CFME Bot 2015-10-23 13:55:24 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/32b9cb23c0828f9daaff516d9cbec7e518bfa28d

commit 32b9cb23c0828f9daaff516d9cbec7e518bfa28d
Author:     Roman Blanco <rblanco>
AuthorDate: Fri Oct 23 15:07:09 2015 +0200
Commit:     Roman Blanco <rblanco>
CommitDate: Fri Oct 23 15:08:11 2015 +0200

    Fixed TimeZone issue in Schedules
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1274270

 app/controllers/ops_controller/settings/schedules.rb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Comment 8 Milan Falešník 2015-11-06 10:45:29 UTC
Reproduced in 5.4.2.0, verified fixed in 5.5.0.9

Comment 10 errata-xmlrpc 2015-12-08 13:39:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:2551

Comment 11 Tim Wade 2015-12-15 16:37:19 UTC
*** Bug 1278410 has been marked as a duplicate of this bug. ***

Comment 12 Tim Wade 2015-12-15 16:38:35 UTC
*** Bug 1290192 has been marked as a duplicate of this bug. ***