Skip to content

Commit

Permalink
Merge pull request #50 from MorganPattersonSignet/fix/datetimeParsing
Browse files Browse the repository at this point in the history
fix: CREATED_AFTER_DATE datetime parsing
  • Loading branch information
zkoppert authored Feb 21, 2024
2 parents c0f2340 + c3cf55a commit 48e3010
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion evergreen.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""This file contains the main() and other functions needed to open an issue/PR dependabot is not enabled but could be"""

import uuid
from datetime import datetime

import auth
import env
Expand Down Expand Up @@ -62,7 +63,10 @@ def main(): # pragma: no cover
continue
except github3.exceptions.NotFoundError:
pass
if created_after_date and repo.created_at < created_after_date:

if created_after_date and repo.created_at.replace(
tzinfo=None
) < datetime.strptime(created_after_date, "%Y-%m-%d"):
continue

print("Checking " + repo.full_name)
Expand Down

0 comments on commit 48e3010

Please sign in to comment.