8000 fix: refactor/correct calculation of week-view event start/end times by jennifer-richards · Pull Request #3947 · ietf-tools/datatracker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: refactor/correct calculation of week-view event start/end times #3947

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

Merged
merged 2 commits into from
May 11, 2022

Conversation

jennifer-richards
Copy link
Member

Around DST switchover dates, the agenda week-view display had some errors in its timestamp calculations. These led to sessions ending at timestamps earlier than when they started. This straightens that out and refactors the code for clarity.

There were also similar bugs in the TimeSlot local and utc start/end time helper functions. These are fixed as well.

Around DST changes, localize(time + duration).astimezone() is not
the same as localize(time).astimezone() + duration. The latter allows
tz-aware times to do their magic and give correct clock times.
There were bugs in the timestamp calculations around DST switchover.
This corrects those and tries to clarify and improve documentation in
the relevant code.
@codecov
Copy link
codecov bot commented May 11, 2022

Codecov Report

Merging #3947 (ca2c51e) into main (4e4569a) will increase coverage by 0.13%.
The diff coverage is 91.17%.

@@            Coverage Diff             @@
##             main    #3947      +/-   ##
==========================================
+ Coverage   88.00%   88.14%   +0.13%     
==========================================
  Files         297      297              
  Lines       38773    39273     +500     
==========================================
+ Hits        34123    34618     +495     
- Misses       4650     4655       +5     
Impacted Files Coverage Δ
ietf/utils/hedgedoc.py 95.89% <ø> (+0.05%) ⬆️
ietf/group/utils.py 94.17% <33.33%> (-0.93%) ⬇️
ietf/meeting/models.py 86.64% <60.00%> (+0.56%) ⬆️
ietf/utils/text.py 86.16% <88.88%> (+0.34%) ⬆️
ietf/doc/templatetags/ietf_filters.py 85.25% <95.77%> (+3.90%) ⬆️
ietf/doc/views_doc.py 90.49% <100.00%> (+0.05%) ⬆️
ietf/meeting/forms.py 97.10% <100.00%> (+0.01%) ⬆️
ietf/secr/proceedings/forms.py 100.00% <100.00%> (ø)
ietf/utils/pipe.py 82.60% <0.00%> (-4.90%) ⬇️
... and 87 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 636ebd7...ca2c51e. Read the comment docs.

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.

2 participants
0