chore: Eliminate use of django.utils.datetime_safe (#4698)
Instead of replacing `datetime_safe` by the standard api, just remove that part of the code (because it is unused). Fixes #4513
This commit is contained in:
parent
594c3f4316
commit
c94c28d65c
|
@ -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/...
|
||||
|
|
Loading…
Reference in a new issue