We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8c887d commit 924bc62Copy full SHA for 924bc62
scripts/run_parsers.py
@@ -11,7 +11,7 @@
11
from pathlib import Path
12
13
from packaging import version
14
-from datetime import datetime
+from datetime import datetime, timezone
15
16
class Groundskeeper:
17
repository_url = 'https://github.com/ArduPilot/ardupilot'
@@ -102,7 +102,7 @@ def get_last_ground_change(repository: git.Repo|None = None):
102
103
# Determine last ground change of some other repo
104
last_commit_date = repository.head.commit.committed_date
105
- return datetime.fromtimestamp(last_commit_date)
+ return datetime.fromtimestamp(last_commit_date).astimezone(timezone.utc)
106
107
@staticmethod
108
def get_vehicle_prefix(vehicle_type: str):
0 commit comments