chore: Eliminate use of django.utils.datetime_safe ()

Instead of replacing `datetime_safe` by the standard api, just remove
that part of the code (because it is unused).

Fixes 
This commit is contained in:
Justin Iurman 2022-11-06 06:54:19 -05:00 committed by GitHub
parent 594c3f4316
commit c94c28d65c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,16 +60,6 @@ for name in pytz.common_timezones:
timezones.sort()
# this is used in models to format dates, as the built-in json serializer
# can not deal with them, and the django provided serializer is inaccessible.
from django.utils import datetime_safe
DATE_FORMAT = "%Y-%m-%d"
TIME_FORMAT = "%H:%M:%S"
def fmt_date(o):
d = datetime_safe.new_date(o)
return d.strftime(DATE_FORMAT)
class Meeting(models.Model):
# number is either the number for IETF meetings, or some other
# identifier for interim meetings/IESG retreats/liaison summits/...