Bug #21145
closedCV erratum filter rules - start_date displayed wrong if browser timezone is behind UTC
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1478132
Description of problem:
Timezone was set to America/Toronto, local date and time was 2017-08-03 11:12:03, start date was set to 2017-08-03. CV, CV filter and CV filter rule were created via API.
However, UI shows start_day for previous day, 2017-08-02.
API shows correct date.
2017-08-03 11:12:03 7ddffec5 [app] [I] Started POST "/katello/api/v2/content_view_filters/18/rules" for 10.36.117.101 at 2017-08-03 11:1
2:03 -0400
2017-08-03 11:12:03 7ddffec5 [app] [I] Processing by Katello::Api::V2::ContentViewFilterRulesController#create as */*
2017-08-03 11:12:03 7ddffec5 [app] [I] Parameters: {"end_date"=>"2017-08-08", "content_view_filter_id"=>"18", "date_type"=>"issued", "
start_date"=>"2017-08-03", "api_version"=>"v2", "content_view_filter_rule"=>{"end_date"=>"2017-08-08", "content_view_filter_id"=>"18", "date_type"=>"issued", "start_date"=>"2017-08-03"}}
Satellite 6.3.0 Snap 9.0:
- satellite-6.3.0-16.0.beta.el7sat.noarch
- katello-3.4.2-1.el7sat.noarch
- foreman-1.15.2-1.el7sat.noarch
How reproducible:
Always
Steps to Reproduce:
1. Set timezone behind UTC, e.g. -4
2. Create CV, Erratum CV filter and filter rule via API and set start_date to current date.
3. Navigate to Content -> Content Views -> Yum Content -> Filters and check start date
Actual results:
Date is set to 1 day before current date.
Expected results:
Additional info:
Updated by The Foreman Bot about 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/6977 added
Updated by Anonymous about 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|e0255c2a43152f0b3e0973ff4726056b0687fd1c.
Updated by Justin Sherrill about 7 years ago
- Translation missing: en.field_release set to 250
Updated by Walden Raines about 7 years ago
- Status changed from Closed to Assigned
- Assignee changed from Dan Seethaler to Walden Raines
Updated by Walden Raines about 7 years ago
- Target version changed from 234 to 237
Updated by Walden Raines almost 7 years ago
- Target version changed from 237 to 239
Updated by Walden Raines almost 7 years ago
- Target version changed from 239 to 243
Updated by The Foreman Bot almost 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/7172 added
Updated by Walden Raines almost 7 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|73cd6902d7fdd7e20aff0c6e001d140ecc46108b.
Updated by Andrew Kofink almost 7 years ago
- Translation missing: en.field_release changed from 250 to 339
Moving to 3.5.2 because it didn't make it into 3.5.0 or 3.5.1 in time.