From 1b97be644dc362b92bdd8686e59245438316c147 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Fri, 9 Oct 2020 09:49:43 +0200 Subject: Unix timestamps are assumed to be UTC. --- tests/test_types.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_types.py b/tests/test_types.py index 9e0c931..90f6482 100644 --- a/tests/test_types.py +++ b/tests/test_types.py @@ -126,7 +126,11 @@ class testTypes(unittest.TestCase): self.assertEqual(v, now) v = checker.load("1600000000") - self.assertEqual(v, datetime.datetime(2020, 9, 13, 14, 26, 40)) + wanted = datetime.datetime( + 2020, 9, 13, 12, 26, 40, 0, + datetime.timezone.utc, + ) + self.assertEqual(v, wanted) today = datetime.date.today() for d in ( -- cgit v1.2.3