Skip to content

Commit

Permalink
Fix datetime comparison error in before_build.py
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-opp committed Oct 17, 2023
1 parent 684ef64 commit 5b4d04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/before_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

g = Github()

one_month_ago = datetime.datetime.now() - datetime.timedelta(days=32)
one_month_ago = datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(days=32)

def filter_date(issue):
return issue.closed_at > one_month_ago
Expand Down

0 comments on commit 5b4d04e

Please sign in to comment.