Skip to content

Commit

Permalink
fix other missing timezone bug in post_issue_on_zulip.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bryangingechen authored Jan 7, 2024
1 parent 8b57690 commit dfef623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post_issue_on_zulip.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def message_date(id):
min_age = now - delta
if i.updated_at < min_age \
and 'blocked-by-other-PR' not in [l.name for l in i.labels] \
and not (i.number in posted_topics and datetime.datetime.fromtimestamp(posted_topics[i.number]) > min_age):
and not (i.number in posted_topics and datetime.datetime.fromtimestamp(posted_topics[i.number], tz=datetime.timezone.utc) > min_age):
if i.pull_request:
open_prs.append(i)
else:
Expand Down

0 comments on commit dfef623

Please sign in to comment.