From bec695aec46f4112c0be327aae3504549a7d0e96 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 29 Oct 2022 14:21:39 -0700 Subject: [PATCH] Use explicit keyword argument tz=datetime.timezone.utc. --- etiquette/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etiquette/helpers.py b/etiquette/helpers.py index 72bc996..7bed10c 100644 --- a/etiquette/helpers.py +++ b/etiquette/helpers.py @@ -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]: