datatracker/ietf/ietfauth
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
..
management refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
migrations Merged in personal/henrik/django-1.7@9020 which upgrades Django from 1.6.0 to 1.7.4 and applies the needed changes to the datatracker code to work with release 1.7.x. 2015-02-08 21:16:44 +00:00
.gitignore Introduce initial authentication/authorization linkage. This has a 2007-05-23 16:10:32 +00:00
__init__.py Remove shim layer from ietfauth, delete some dead code and migrate 2013-12-05 16:24:03 +00:00
factories.py Bring the factory-boy and Faker dependencies forward through some minor breaking changes. Stop using the deprecated fr_QC locale in Faker. Commit ready for merge. 2021-08-03 22:22:35 +00:00
forms.py feat: add pronouns to Person and oidc claims. Fixes #4043. (#4059) 2022-06-21 15:02:02 -05:00
htpasswd.py Removed all __future__ imports. 2020-03-05 23:53:42 +00:00
tests.py refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
urls.py migrated forward 2020-07-09 21:07:05 +00:00
utils.py feat: add pronouns to Person and oidc claims. Fixes #4043. (#4059) 2022-06-21 15:02:02 -05:00
views.py fix: do not set user template var in ietfauth views (#4216) 2022-07-15 13:37:25 -05:00