Skip to content

fix: use UTC for model_to_timeline_data() - #4763

Merged
rjsparks merged 1 commit into
ietf-tools:mainfrom
painless-security:jennifer/utc-timeline-data
Nov 15, 2022
Merged

fix: use UTC for model_to_timeline_data()#4763
rjsparks merged 1 commit into
ietf-tools:mainfrom
painless-security:jennifer/utc-timeline-data

Conversation

@jennifer-richards

Copy link
Copy Markdown
Member

This changes the method to operate in UTC instead of server time. The existing code was mixing UTC and server time, though, giving timestamps purporting to be UTC but computed from the date in the server timezone. To the extent that it matters, I think this change is preferable to restoring the original behavior.

This changes the method to operate in UTC instead of server time.
The existing code was mixing UTC and server time, though, giving
timestamps purporting to be UTC but computed from the date in the
server timezone. To the extent that it matters, I think this change
is preferable to restoring the original behavior.
@jennifer-richards

Copy link
Copy Markdown
Member Author

I expect this will fix the failure in #4758 but have not yet verified.

@codecov

codecov Bot commented Nov 15, 2022

Copy link
Copy Markdown

Codecov Report

Merging #4763 (4f08a1c) into main (cdfe7ea) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #4763   +/-   ##
=======================================
  Coverage   88.51%   88.51%           
=======================================
  Files         296      296           
  Lines       39845    39846    +1     
=======================================
+ Hits        35268    35271    +3     
+ Misses       4577     4575    -2     
Impacted Files Coverage Δ
ietf/doc/expire.py 95.31% <100.00%> (ø)
ietf/doc/templatetags/ietf_filters.py 87.61% <100.00%> (+0.02%) ⬆️
ietf/doc/views_stats.py 76.74% <100.00%> (ø)
ietf/idindex/index.py 95.05% <100.00%> (ø)
ietf/utils/timezone.py 100.00% <100.00%> (ø)
ietf/group/utils.py 93.72% <0.00%> (-0.45%) ⬇️
ietf/doc/views_search.py 89.85% <0.00%> (+0.62%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@rjsparks
rjsparks merged commit 3c2e004 into ietf-tools:main Nov 15, 2022
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 19, 2022
@jennifer-richards
jennifer-richards deleted the jennifer/utc-timeline-data branch December 19, 2022 19:08
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