Actions
Bug #5057
closedSync Plans not using time specified on creation
Description
If you create a new sync plan you can enter any time you wish but its using the current time as sync date parameter
Processing by Katello::Api::V2::SyncPlansController#create as JSON Parameters: {"startDate"=>"2014-04-03T13:25:42.963Z", "startTime"=>"2014-04-03T18:00:43.000Z", "interval"=>"daily", "name"=>"TestSync 20:00 Daily", "sync_date"=>"Thu Apr 03 2014 15:25:42 GMT+0200 (CEST) Thu Apr 03 2014 20:00:43 GMT+0200 (CEST)", "api_version"=>"v2", "organization_id"=>"ATIX", "sync_plan"=>{"name"=>"TestSync 20:00 Daily", "sync_date"=>"Thu Apr 03 2014 15:25:42 GMT+0200 (CEST) Thu Apr 03 2014 20:00:43 GMT+0200 (CEST)", "interval"=>"daily"}} Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/api/v2/sync_plans/show.json.rabl within katello/api/v2/layouts/resource (2.1ms) Completed 200 OK in 55ms (Views: 3.4ms | ActiveRecord: 8.6ms) Processing by Katello::Api::V2::SyncPlansController#show as JSON Parameters: {"api_version"=>"v2", "organization_id"=>"ATIX", "id"=>"6"} Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/api/v2/sync_plans/show.json.rabl within katello/api/v2/layouts/resource (3.3ms) Completed 200 OK in 18ms (Views: 4.2ms | ActiveRecord: 2.8ms)
startDate and startTime seem to wrong, both are timestamps
in addition to that you can't seem to edit the time you set of a sync plan, but that could be related to the wrong values
Actions