datatracker/ietf/community
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
..
migrations fix: add new search rule to correct group community lists (#4291) 2022-07-28 09:13:29 -05:00
__init__.py Added in the community app, which wasn't included properly in the previous commit. 2012-06-27 08:26:18 +00:00
admin.py Removed all __future__ imports. 2020-03-05 23:53:42 +00:00
forms.py feat: show expired WG/RG drafts at WG/RG Documents page (#4252) 2022-07-26 12:02:09 -05:00
models.py feat: show expired WG/RG drafts at WG/RG Documents page (#4252) 2022-07-26 12:02:09 -05:00
resources.py Added 'from __future__' imports all over the place, to bring code behaviour into closer alignment between python2 and python3 2019-07-15 15:40:51 +00:00
tests.py feat: show expired WG/RG drafts at WG/RG Documents page (#4252) 2022-07-26 12:02:09 -05:00
urls.py Updated all urlpatterns to use ietf.utils.urls.url() instead of django's, 2017-02-11 14:43:01 +00:00
utils.py feat: show expired WG/RG drafts at WG/RG Documents page (#4252) 2022-07-26 12:02:09 -05:00
views.py refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00