Skip to content

fix: Update timezone on the interim create page#4262

Merged
rjsparks merged 2 commits into
ietf-tools:mainfrom
painless-security:mark/update_timzone_on_interim_create
Jul 26, 2022
Merged

fix: Update timezone on the interim create page#4262
rjsparks merged 2 commits into
ietf-tools:mainfrom
painless-security:mark/update_timzone_on_interim_create

Conversation

@meadmaker

Copy link
Copy Markdown
Contributor

The interim creation screen will set the timezone to the timezone of
the browser. Unfortunately, the UI element was never refreshed, so
it remained on its loaded default, thus telling the user the wrong
value.

This change adds a timezone widget refresh to the end of the function that
loads the browser's local timezone into the timezone value.

This change also adds code to update the 'Local timezone' help text
for the start time and end time input bozes to
call out the selected timezone specifically.

(Finally, it adds a newline at the end of the file, since none was present previously)

Fixes #3898

The interim creation screen will set the timezone to the timezone of
the browser.  Unfortunately, the UI element was never refreshed, so
it remained on its loaded default, thus telling the user the wrong
value.

This change adds a timezone widget refresh to the end of the function that
loads the browser's local timezone into the timezone value.

This change also adds code to update the 'Local timezone' help text
for the start time and end time input bozes to
call out the selected timezone specifically.

Fixes ietf-tools#3898
@codecov

codecov Bot commented Jul 24, 2022

Copy link
Copy Markdown

Codecov Report

Merging #4262 (82bc9aa) into main (fe1f51a) will increase coverage by 0.00%.
The diff coverage is 96.15%.

@@           Coverage Diff           @@
##             main    #4262   +/-   ##
=======================================
  Coverage   88.40%   88.41%           
=======================================
  Files         294      294           
  Lines       39197    39199    +2     
=======================================
+ Hits        34652    34656    +4     
+ Misses       4545     4543    -2     
Impacted Files Coverage Δ
ietf/doc/urls.py 100.00% <ø> (ø)
ietf/utils/markdown.py 100.00% <ø> (ø)
ietf/doc/views_draft.py 91.90% <93.75%> (-0.09%) ⬇️
ietf/doc/views_doc.py 90.53% <100.00%> (+0.04%) ⬆️
ietf/utils/text.py 85.97% <100.00%> (+0.26%) ⬆️
ietf/meeting/views.py 90.75% <0.00%> (-0.06%) ⬇️
ietf/api/urls.py 100.00% <0.00%> (ø)
ietf/doc/views_ballot.py 91.86% <0.00%> (+0.10%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9e55ec1...82bc9aa. Read the comment docs.

@rjsparks rjsparks requested a review from NGPixel July 24, 2022 12:44

@jennifer-richards jennifer-richards left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just some minor lint.

It strikes me as a little awkward that we now have to hook up the change event on the timezone input before we call initTimeZone(). It might be worth adding a comment to discourage someone from "helpfully" switching that around.

Comment thread ietf/static/js/meeting-interim-request.js Outdated
@NGPixel NGPixel changed the title Fix: Update timezone on the interim create page fix: Update timezone on the interim create page Jul 24, 2022
@rjsparks rjsparks merged commit 109c646 into ietf-tools:main Jul 26, 2022
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interim meeting time entry

4 participants