Skip to content

Commit

Permalink
fix: remove time of day and tz info properly
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Koppert <[email protected]>
  • Loading branch information
zkoppert committed Apr 2, 2024
1 parent a7ecef4 commit ceff005
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion evergreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ def main(): # pragma: no cover
except github3.exceptions.NotFoundError:
pass

if created_after_date and repo.created_at.replace(
repo_createdat_date_object = datetime.strptime(
repo.created_at.split("T")[0], "%Y-%m-%d"
)
if created_after_date and repo_createdat_date_object.replace(
tzinfo=None
) < datetime.strptime(created_after_date, "%Y-%m-%d"):
continue
Expand Down

0 comments on commit ceff005

Please sign in to comment.