datatracker/ietf/stats
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 feat: Add tracking checked-in to MeetingRegistration and the registration API. (#4280) 2022-07-26 13:17:19 -05:00
__init__.py Actually commit the statistics section. 2016-10-13 15:36:14 +00:00
admin.py Tweaked the MeetingRegistration admin. 2020-06-25 16:22:41 +00:00
backfill_data.py Find references from submitted XML instead of rendering to text and parsing. Fixes #3342. Commit ready for merge. 2022-01-07 17:53:23 +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
models.py feat: Add tracking checked-in to MeetingRegistration and the registration API. (#4280) 2022-07-26 13:17:19 -05:00
resources.py Updated API resources for MeetingRegistration. 2020-06-10 18:22:47 +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 Removed all __future__ imports. 2020-03-05 23:53:42 +00:00
utils.py fix: remove test so all deleted or swapped (onsite<->remote) registrations get removed from MeetingRegistrations (#4359) 2022-08-25 10:00:04 -05:00
views.py refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00