Bug 1558627
| Summary: | Automate Schedule: "Starting time" field saves nonsense. | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Milan Falešník <mfalesni> | |
| Component: | UI - OPS | Assignee: | Harpreet Kataria <hkataria> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Dmitry Misharov <dmisharo> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 5.9.0 | CC: | cpelland, dmisharo, hkataria, lavenel, mpovolny, obarenbo | |
| Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
| Target Release: | 5.10.0 | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | 5.10.0.0 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1560104 (view as bug list) | Environment: | ||
| Last Closed: | 2019-02-11 14:07:15 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | Bug | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | CFME Core | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1560104 | |||
|
Description
Milan Falešník
2018-03-20 16:04:32 UTC
*** Bug 1558628 has been marked as a duplicate of this bug. *** New commit detected on ManageIQ/manageiq-ui-classic/master: https://github.com/ManageIQ/manageiq-ui-classic/commit/413e81d6bfbad8dc5a943a81e4aabc4d7e9b6d10 commit 413e81d6bfbad8dc5a943a81e4aabc4d7e9b6d10 Author: Harpreet Kataria <hkataria> AuthorDate: Wed Mar 21 17:43:10 2018 -0400 Commit: Harpreet Kataria <hkataria> CommitDate: Wed Mar 21 17:43:10 2018 -0400 Fixed schedule editor to convert/save start time correctly Need to only pass date to create_time_in_utc method call, prior to fix code was passing in datetime as "Mon Mar 12 2018 20:00:00 GMT-0400 (EDT) 1:5:00", having timezone and time in the start_date parameter was messing the conversion up. Changed miq_datepicker.js to convert string into moment first and then convert it to utc, that solves the issue where Date being sent upto server was -1 day of selected day. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1558627 app/assets/javascripts/controllers/schedule/schedule_form_controller.js | 2 +- app/assets/javascripts/directives/miq_datepicker.js | 2 +- app/controllers/ops_controller/settings/schedules.rb | 2 +- spec/controllers/ops_controller/settings/schedules_spec.rb | 11 + 4 files changed, 14 insertions(+), 3 deletions(-) Fixed and verified in 5.10.0.1.20180619163011_900fdc4. Time set correctly in schedules for Automate Tasks. |