There was an error while loading. Please reload this page.
1 parent ce9986c commit 5c5d98aCopy full SHA for 5c5d98a
1 file changed
tests/test_utils.py
@@ -69,8 +69,8 @@ def _normalize_distribution_name(name):
69
), # UTC time
70
(
71
"2021-01-01T00:00:00.000000",
72
- datetime(2021, 1, 1, tzinfo=timezone.utc),
73
- ), # No TZ -- assume UTC
+ datetime(2021, 1, 1).astimezone(timezone.utc),
+ ), # No TZ -- assume local but convert to UTC
74
75
"2021-01-01T00:00:00Z",
76
datetime(2021, 1, 1, tzinfo=timezone.utc),
0 commit comments