Skip to content

Commit a4dc1c0

Browse files
authored
betteruptime_status_page_report :: hardcode Z UTC offset for python3.6 comp (#8)
1 parent cbff4a3 commit a4dc1c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/modules/betteruptime_status_page_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def retrieve_id(self):
128128

129129
for item in json_object["data"]:
130130
dt_payload = datetime.strptime(self.payload["starts_at"], '%Y-%m-%dT%H:%M%z')
131-
dt_retrieved = datetime.strptime(item["attributes"]["starts_at"], '%Y-%m-%dT%H:%M:%S.%f%z')
131+
dt_retrieved = datetime.strptime(item["attributes"]["starts_at"], '%Y-%m-%dT%H:%M:%S.%fZ')
132132
if item["attributes"] and \
133133
item["attributes"]["title"] == self.payload["title"] and \
134134
item["attributes"]["report_type"] == self.payload["report_type"] and \

0 commit comments

Comments
 (0)