Skip to content

Commit

Permalink
replace Z tz identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
cbartz committed Oct 23, 2024
1 parent fb6f2d3 commit c72f373
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/github_runner_manager/openstack_cloud/openstack_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,8 @@ def _get_and_ensure_unique_server(
latest_server = reduce(
lambda a, b: (
a
if datetime.fromisoformat(a.created_at) < datetime.fromisoformat(b.create_at)
if datetime.fromisoformat(a.created_at.replace("Z", "+00:00"))
< datetime.fromisoformat(b.created_at.replace("Z", "+00:00"))
else b
),
servers,
Expand Down

0 comments on commit c72f373

Please sign in to comment.