Skip to content

Commit

Permalink
Merge pull request #162 from jaimergp/gh-datetime
Browse files Browse the repository at this point in the history
fix timezone awareness
  • Loading branch information
beckermr authored Jan 19, 2024
2 parents 44b7fb6 + 77553ec commit d558a8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion render_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'major outage',
'maintenance'
])
OLDEST = datetime.datetime.utcnow() - datetime.timedelta(days=90)
OLDEST = datetime.datetime.now(tz=datetime.timezone.utc) - datetime.timedelta(days=90)
TIME_FMT = '%Y/%m/%d %H:%M:%S'

gh = Github(os.environ['GITHUB_TOKEN'])
Expand Down

0 comments on commit d558a8e

Please sign in to comment.