Skip to content

Commit caa9f9b

Browse files
authored
Fix stalebot (#2052)
1 parent 943efed commit caa9f9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/stale.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"""
1818
import os
1919
from datetime import datetime as dt
20+
from datetime import timezone
2021

2122
from github import Github
2223

@@ -36,7 +37,7 @@ def main():
3637
for issue in open_issues:
3738
comments = sorted([comment for comment in issue.get_comments()], key=lambda i: i.created_at, reverse=True)
3839
last_comment = comments[0] if len(comments) > 0 else None
39-
current_time = dt.utcnow()
40+
current_time = dt.now(timezone.utc)
4041
days_since_updated = (current_time - issue.updated_at).days
4142
days_since_creation = (current_time - issue.created_at).days
4243
if (

0 commit comments

Comments
 (0)