fix: supply tzinfo to datetime in iana-protocols-updates script (#4753)

This commit is contained in:
Jennifer Richards 2022-11-14 16:51:24 -04:00 committed by GitHub
parent 069c913817
commit 5e7debb8db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ def chunks(l, n):
syslog.syslog("Updating history log with new RFC entries from IANA protocols page %s" % settings.IANA_SYNC_PROTOCOLS_URL)
# FIXME: this needs to be the date where this tool is first deployed
rfc_must_published_later_than = datetime.datetime(2012, 11, 26, 0, 0, 0)
rfc_must_published_later_than = datetime.datetime(2012, 11, 26, 0, 0, 0, tzinfo=datetime.timezone.utc)
try:
response = requests.get(