datatracker/ietf
Jennifer Richards ebebdbed3e
refactor: replace datetime.now and datetime.today with timezone.now (#4211)
* 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: renumber migrations
2022-08-25 13:45:16 -03:00
..
api refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
bin refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
community refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
cookies More fixes 2021-12-02 11:07:50 +00:00
database-notes
dbtemplate test: Validate HTML rendered during tests (#3782) 2022-04-07 13:30:38 -03:00
doc refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
group refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
help
idindex refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
iesg Hopefully the final check-ins. 2022-02-08 17:29:15 +00:00
ietfauth refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
ipr refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
liaisons refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
mailinglists chore: remove unneeded logging and code marked unreachable that has not been reached. (#4305) 2022-08-04 11:25:31 -05:00
mailtrigger Use temporary directories instead of "real" filesystem for tests. Fixes #3414. Commit ready for merge. 2021-11-05 19:45:57 +00:00
meeting refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
message refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
name feat: Celery support and asynchronous draft submission API (#4037) 2022-08-22 13:29:31 -05:00
nomcom refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
person refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
redirects Update internal references to trac.tools.ietf.org to point to trac.ietf.org. Remove several links into tools.ietf.org. Commit ready for merge. 2021-10-13 21:43:44 +00:00
release feat: reflect breaking change in internal release description (#3826) 2022-04-14 15:04:09 -05:00
review refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
secr refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
static fix: use white ietf text logo in header (#4283) 2022-07-27 15:43:06 -05:00
stats refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
submit refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
sync refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
templates Fix BCP79 reference (#4369) 2022-08-25 09:43:04 -05:00
utils refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
.gitignore feat: diff crawl docker tool (#4310) 2022-08-18 12:28:47 -05:00
.yarnrc Preliminary work on converting bower management of web resources to yarn. New management command, replacing bower_install will be needed. 2019-07-25 20:28:18 +00:00
__init__.py feat: Celery support and asynchronous draft submission API (#4037) 2022-08-22 13:29:31 -05:00
celeryapp.py feat: Celery support and asynchronous draft submission API (#4037) 2022-08-22 13:29:31 -05:00
checks.py Convert generate-draft-aliaes and generate-wg-aliases into management commands: generate_draft_aliases and generate_group_aliases. Also provide tests for the new management commands. 2021-03-13 17:30:35 +00:00
context_processors.py feat: improve release information in footer. (#3738) 2022-03-30 11:53:07 -03:00
feed_urls.py
LICENSE
manage.py
middleware.py Updated a middleware function to use the correct Py3 idiom to access exception arguments. 2020-09-21 12:39:00 +00:00
settings.py fix: replum settings so that production app configuration can be configured in settings_local (#4361) 2022-08-24 12:22:47 -05:00
settings_sqlitetest.py chore: Use URL resolver in more places (#4104) 2022-06-22 14:10:16 -05:00
settings_testcrawl.py chore: improve ALLOWED_HOSTS in settings (ports are not useful there) (#4232) 2022-07-20 15:16:14 -05:00
urls.py fix: test web manifest (#4047) 2022-06-02 11:10:11 -05:00
virtualenv-manage.py More Py2/3 adaptations fetched from production. 2020-02-23 16:27:30 +00:00
wsgi.py Update internal references to trac.tools.ietf.org to point to trac.ietf.org. Remove several links into tools.ietf.org. Commit ready for merge. 2021-10-13 21:43:44 +00:00