Use explicit keyword argument tz=datetime.timezone.utc.

This commit is contained in:
voussoir 2022-10-29 14:21:39 -07:00
parent 92405e0677
commit bec695aec4
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -333,7 +333,7 @@ def now():
'''
Return the current UTC datetime object.
'''
n = datetime.datetime.now(datetime.timezone.utc)
n = datetime.datetime.now(tz=datetime.timezone.utc)
return n
def parse_unit_string(s) -> typing.Union[int, float, None]: