From 5514a8d1e124f7c78910ae0f46f53c83cc71cb35 Mon Sep 17 00:00:00 2001 From: ducklet Date: Thu, 22 Jul 2021 00:05:38 +0200 Subject: [PATCH] fix utc datetime generator m( --- unwind/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unwind/models.py b/unwind/models.py index 125ef1f..f6c2b7e 100644 --- a/unwind/models.py +++ b/unwind/models.py @@ -137,7 +137,7 @@ def validate(o): def utcnow(): - return datetime.now().replace(tzinfo=timezone.utc) + return datetime.utcnow().replace(tzinfo=timezone.utc) @dataclass