datatracker/ietf/utils/management
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
..
commands refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
__init__.py Added a makefixture management command, from http://djangosnippets.org/snippets/918/, somewhat hacked. 2013-09-29 20:50:51 +00:00
base.py Create management command base class that sends emails on exceptions. Fixes #3356 and #3357. Commit ready for merge. 2021-10-29 01:58:21 +00:00
tests.py Create management command base class that sends emails on exceptions. Fixes #3356 and #3357. Commit ready for merge. 2021-10-29 01:58:21 +00:00