Use explicit keyword argument tz=datetime.timezone.utc.
This commit is contained in:
parent
92405e0677
commit
bec695aec4
1 changed files with 1 additions and 1 deletions
|
@ -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]:
|
||||
|
|
Loading…
Reference in a new issue