We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2e5c4a commit 7d33727Copy full SHA for 7d33727
skyfield/timelib.py
@@ -51,7 +51,7 @@ def second(self): return self[5]
51
utc = dt_module.timezone.utc
52
@staticmethod
53
def _utcnow():
54
- return datetime.now(dt_module.UTC)
+ return datetime.now(utc) # datetime.UTC was not added until 3.11
55
else:
56
class UTC(dt_module.tzinfo):
57
'UTC'
0 commit comments