-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed: Timezone set-up in MySettings was not honored when displaying date fields in the report #18438
Fixed: Timezone set-up in MySettings was not honored when displaying date fields in the report #18438
Conversation
7eb2ec7
to
554bd0c
Compare
@miq-bot assign @gtanzillo |
554bd0c
to
0cc0ee3
Compare
@yrudman can you add a test for this, we have one that's stubbing UTC that you can copy and change the timezone and add a check for the right timezone in the html rows.. see miq_report_spec.rb: it "returns expected html outputs with formatted values" do
allow(User).to receive(:server_timezone).and_return("UTC")
report.generate_table
expect(report.build_html_rows).to match_array(@expected_html_rows)
end |
d51f0c3
to
ff39145
Compare
@jrafanie test added, could you take another look at this PR |
A few typos in title, description, commit messages: Timezon => Timezone |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a few typos mentioned above
ff39145
to
0b7340f
Compare
@jrafanie spelling corrected |
…date fields in the report. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1599849
…tes impression that stubbing different Timezone will produce different output
0b7340f
to
cc832d5
Compare
cc832d5
to
9e259ae
Compare
Checked commits yrudman/manageiq@8753ecf~...9e259ae with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 spec/models/miq_report_spec.rb
|
@jrafanie I hope last typo was corrected |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, merging. Please apply backport labels is needed.
@miq-bot add-label hammer/yes |
…eneration Fixed: Timezone set-up in MySettings was not honored when displaying date fields in the report (cherry picked from commit 61e4c2a) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1761866
Hammer backport details:
|
Issue:
Timezone for Display Settings set up in
MySettings
was not passed to column formatting when generating report.When Timezone set-up as
BEFORE:
AFTER:
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1599849
@miq-bot add-label bug, reporting