Bug 1278410

Summary: Edit menu for CFME database backup schedule displays a wrong Starting time.
Product: Red Hat CloudForms Management Engine Reporter: Nikhil Gupta <ngupta>
Component: ApplianceAssignee: Tim Wade <twade>
Status: CLOSED DUPLICATE QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: high    
Version: 5.4.0CC: abellott, jhardy, ngupta, obarenbo, tcarlin
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1290192 (view as bug list) Environment:
Last Closed: 2015-12-15 16:37:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1290192, 1297005    
Attachments:
Description Flags
schedule screenshot
none
Edit schedule
none
Cancel schedule none

Description Nikhil Gupta 2015-11-05 12:11:57 UTC
Created attachment 1090041 [details]
schedule screenshot

Description of problem:
I have set a CFME database backup schedule. I can view it by navigating to Configure -> Configuration -> Settings accordion -> Schedules, I select the "DBBackup" schedule (see attached screenshot dbbackup-2.png).

Next schedule is planned for  11/5 at 3:45 CET 2015.

But if I edit the schedule (see attached screenshot dbbackup-3.png), it shows:
Timezone: GMT+01:00 (Paris)
Starting date: 11/5/2015
Starting time (Paris): 2h45mn

The time is not Paris time, but GMT+00:00 time (the appliance timezone is GMT+01:00 (Paris)).

If I cancel the edit without doing any change, and go back to the view, time is displayed correctly. (see attached screenshot dbbackup-4.png).

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

How reproducible:
Always

Steps to Reproduce:
1. Configure -> Configuration, Settings accordion -> Schedules
2. Configuration -> Add a new schedule -> Select 'Database Backup' Action 
3. Fill required details 
   Timezone: GMT+01:00 (Paris)
   Starting date: 11/5/2015
   Starting time (Paris): 3h45mn
   Save
4. Next schedule is planned for  11/5 at 3:45 CET 2015.
5. Now edit the same schedule, Starting time (Paris) shows GMT+00:00 time
   Starting time (Paris): 2h45mn

Actual results:
Starting time (Paris) shows GMT+00:00 time

Expected results:
Starting time (Paris) should show GMT+01:00 time which is 3h45mn in this case.

Additional info:
This is happening in all timezones except UTC.

Comment 2 Nikhil Gupta 2015-11-05 12:12:35 UTC
Created attachment 1090042 [details]
Edit schedule

Comment 3 Nikhil Gupta 2015-11-05 12:14:17 UTC
Created attachment 1090043 [details]
Cancel schedule

Comment 4 Tim Wade 2015-11-06 23:06:35 UTC
Hi Nikhil,

I've tried to reproduce this in 5.5.z and have been unable to. Could you possibly provide any other details of your environment, and/or configuration if any changes were made? Thanks

Comment 6 Tim Wade 2015-12-15 16:37:19 UTC
Nikhil,

I didn't see this at first, because it's already been fixed in https://github.com/ManageIQ/manageiq/commit/32b9cb23c0828f9daaff516d9cbec7e518bfa28d. It's now clear that this is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1274270, so I'll close this ticket.

*** This bug has been marked as a duplicate of bug 1274270 ***