datatracker/ietf/templates
Jennifer Richards 8b52d27b02
refactor: refactor timestamp handling so tests in meeting app pass (#4371)
* refactor: replace datetime.now with timezone.now

* refactor: migrate model fields to use timezone.now as default

* refactor: replace datetime.today with timezone.now

datetime.datetime.today() is equivalent to datetime.datetime.now(); both
return a naive datetime with the current local time.

* refactor: rephrase datetime.now(tz) as timezone.now().astimezone(tz)

This is effectively the same, but is less likely to encourage accidental
use of naive datetimes.

* refactor: revert datetime.today() change to old migrations

* refactor: change a missed datetime.now to timezone.now

* chore: renumber timezone_now migration

* chore: add migration to change timestamps to UTC

* refactor: move tz instantiation/caching from TimeSlot to Meeting

* fix: assume utc if meeting.time_zone is blank

* chore: make datetime.combine() calls tz aware in the meeting app

* ci: correctly use meeting.tz in TimeSlotFactory

* chore: compute TimeSlot utc / local times assuming tz-aware times

* chore: use tzaware math for agenda editor timeslot layout

* chore: fill in Meeting.time_zone where it is blank

Nearly all interim meetings on or before 2016-07-01 have blank
time_zone values. This migration fills these in with PST8PDT.

* chore: disallow blank Meeting.time_zone value

* refactor: no need to handle blank time_zone case in TZ migration

* refactor: remove now-unnecessary checks that meeting has time_zone

* chore: fix timezone handling in agenda.ics and Meeting.updated()

* chore: fix tz handling in interim_request_details, exercise in tests

* chore: fix timezone handling for test_interim_send_announcement

* chore: fix timezone handling in agenda_json()

* chore: fix timezone handling in old agenda

* chore: fix timezone handling for EditTimeslotsTests

* refactor: refactor a few fixes for more consistent timezone handling

* chore: add timezone info to timestamps in fixtures

* chore: remove naive datetime warnings found in meetings.tests_views

* chore: fix a few more test failures in meetings.tests_views

All tests in meetings.tests_views now passing

* chore: remove unused import

* chore: fix timezone handling in test_schedule_generator.py

* chore: fix timezone handling affecting meeting.tests_js

* chore: fix timeslot test bug when local date != UTC date

* test: fix a few failing tests, all meetings tests now pass

(for me, anyway)

* chore: renumber migrations

* chore: update timestamp conversion migration

The django-celery-beat package introduces tables with timestamp
columns. These columns are stored in CELERY_TIMEZONE. Because we run with
this set to UTC, the migration ignores these columns.

* chore: fix pytz-related change in migration

* chore: remove duplicate migrations

* chore: remove CELERY_BEAT_TZ_AWARE setting now that USE_TZ is True

* test: avoid failure in test with bogus timezone
2022-08-26 16:53:19 -03:00
..
admin/group/group Hopefully the final check-ins. 2022-02-08 17:29:15 +00:00
api chore: Use URL resolver in more places (#4104) 2022-06-22 14:10:16 -05:00
base fix: suppress profile link if user not linked to a Person (#4214) 2022-07-15 13:42:51 -05:00
community fix: Don't run striptags on event descriptions that are emailed (#4267) 2022-07-24 11:37:17 -05:00
cookies chore: Use URL resolver in more places (#4104) 2022-06-22 14:10:16 -05:00
doc Fix BCP79 reference (#4369) 2022-08-25 09:43:04 -05:00
group fix: Show Zulip room URL (#4296). Fixes #4269 2022-07-29 15:42:07 -05:00
help chore: Use URL resolver in more places (#4104) 2022-06-22 14:10:16 -05:00
idindex Eliminated several variations on word wrapping, keeping only what used to be wrap_text(), but renamed as ietf.utils.text.wordwrap(). This performs better than django.utils.text.wrap() when there are indented text parts. Replaced django's default wordwrap filter with one calling ietf.utils.text.wordwrap in templates. Changed to triggered wrapping in some cases, with the maybewordwrap filter, which triggers on lines longer than 100 characters. This fixes the issue with undesired wrapping of reviews. 2017-06-02 23:13:22 +00:00
iesg chore: Use URL resolver in more places (#4104) 2022-06-22 14:10:16 -05:00
ietfauth fix(ui): badge -> badge rounded-pill (#4076) 2022-06-15 13:43:49 -05:00
ipr chore: Use URL resolver in more places (#4104) 2022-06-22 14:10:16 -05:00
liaisons fix: Add popup to explain colors for liaisons needing action. Rework how aria-label is supplied for several input fields. Update vnu.jar. Adjust some field styling. (#4115) 2022-07-07 14:01:21 -05:00
mailinglists test: Validate HTML rendered during tests (#3782) 2022-04-07 13:30:38 -03:00
mailtrigger fix: add mailtrigger links (#4243) 2022-07-23 12:07:33 -05:00
meeting refactor: refactor timestamp handling so tests in meeting app pass (#4371) 2022-08-26 16:53:19 -03:00
message fix: add more HTML validation & fixes (#3891) 2022-05-03 13:55:48 -05:00
nomcom fix: Add popup to explain colors for liaisons needing action. Rework how aria-label is supplied for several input fields. Update vnu.jar. Adjust some field styling. (#4115) 2022-07-07 14:01:21 -05:00
notify_expirations Add a clean_whitespace filter in some places to get rid of any newlines embedded in document titles. 2011-02-02 15:19:27 +00:00
oidc_provider fix: Fix various page titles (#4239) 2022-07-21 11:11:31 -05:00
person feat: add pronouns to Person and oidc claims. Fixes #4043. (#4059) 2022-06-21 15:02:02 -05:00
registration fix: do not set user template var in ietfauth views (#4216) 2022-07-15 13:37:25 -05:00
release chore: Use URL resolver in more places (#4104) 2022-06-22 14:10:16 -05:00
review test: Validate HTML rendered during tests (#3782) 2022-04-07 13:30:38 -03:00
stats fix: Add popup to explain colors for liaisons needing action. Rework how aria-label is supplied for several input fields. Update vnu.jar. Adjust some field styling. (#4115) 2022-07-07 14:01:21 -05:00
submit feat: Celery support and asynchronous draft submission API (#4037) 2022-08-22 13:29:31 -05:00
sync test: Validate HTML rendered during tests (#3782) 2022-04-07 13:30:38 -03:00
test Merged [2639] from fenner@fenron.net: 2010-11-08 08:47:36 +00:00
utils chore: Use URL resolver in more places (#4104) 2022-06-22 14:10:16 -05:00
.gitignore Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
401.html chore: Use URL resolver in more places (#4104) 2022-06-22 14:10:16 -05:00
403.html fix: Fix various page titles (#4239) 2022-07-21 11:11:31 -05:00
404.html fix: Fix various page titles (#4239) 2022-07-21 11:11:31 -05:00
500.html feat: Switch to SVG logo; use it (and new bitmaps) in more places (#4035) 2022-05-31 17:03:43 -05:00
base.html fix: use white ietf text logo in header (#4283) 2022-07-27 15:43:06 -05:00
debug.html fix: Use unique data-sort attributes (#3836) 2022-04-19 10:16:32 -05:00
email_failed.html Hopefully the final check-ins. 2022-02-08 17:29:15 +00:00
form.html Hopefully the final check-ins. 2022-02-08 17:29:15 +00:00
googlea30ad1dacffb5e5b.html test: Validate HTML rendered during tests (#3782) 2022-04-07 13:30:38 -03:00
site.webmanifest feat: Switch to SVG logo; use it (and new bitmaps) in more places (#4035) 2022-05-31 17:03:43 -05:00
utf8_4byte_failed.html Hopefully the final check-ins. 2022-02-08 17:29:15 +00:00