Bug 1207573

Summary: Start date for report schedule is set to tomorrow
Product: Red Hat CloudForms Management Engine Reporter: Christian Jung <cbolz>
Component: UI - OPSAssignee: Zita Nemeckova <znemecko>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Stefanisin <jistefan>
Severity: low Docs Contact:
Priority: low    
Version: 5.3.0CC: cpelland, hkataria, jhardy, jistefan, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: report:trivial
Fixed In Version: 5.7.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1368165 (view as bug list) Environment:
Last Closed: 2017-01-11 20:30:30 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: 1368165    

Description Christian Jung 2015-03-31 08:38:52 UTC
Description of problem:
When creating a new report schedule, the start date is set to the following day and not the current one. As a consequence, if a report is set to be executed on an hourly basis, it will not become active on the same day (unless the start date was explicitly changed). 

This is not a big issue but inconvenient for most users, since they do not expect the first scheduled execution for the next day.

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

How reproducible:
always

Steps to Reproduce:
1. create a new report schedule
2. set it to hourly
3. not that start date is set for the next day, not the current one

Actual results:
start date is next day

Expected results:
start date should be current day

Additional info:

Comment 2 Harpreet Kataria 2016-07-27 13:55:05 UTC
Zita,

By design we have initial date set to next day in schedule editor and the initial time to run the report is set to midnight which technically will mean the next day, but in this case if user wants to run the report on hourly basis, we should default the date to today's date but only when user changes to run the report hourly. Let me know if you have any questions.

Thanks,
~Harpreet

Comment 3 Zita Nemeckova 2016-07-28 08:34:49 UTC
https://github.com/ManageIQ/manageiq/pull/10109