We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 943efed commit caa9f9bCopy full SHA for caa9f9b
utils/stale.py
@@ -17,6 +17,7 @@
17
"""
18
import os
19
from datetime import datetime as dt
20
+from datetime import timezone
21
22
from github import Github
23
@@ -36,7 +37,7 @@ def main():
36
37
for issue in open_issues:
38
comments = sorted([comment for comment in issue.get_comments()], key=lambda i: i.created_at, reverse=True)
39
last_comment = comments[0] if len(comments) > 0 else None
- current_time = dt.utcnow()
40
+ current_time = dt.now(timezone.utc)
41
days_since_updated = (current_time - issue.updated_at).days
42
days_since_creation = (current_time - issue.created_at).days
43
if (
0 commit comments