Skip to content

Commit

Permalink
Update chatcommands.py
Browse files Browse the repository at this point in the history
replace datetime.utcnow() with datetime.now(datetime.UTC)
  • Loading branch information
jeffschaller authored Nov 3, 2023
1 parent fc1243d commit 9da5dc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chatcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ def wut():
def hats():
wb_start = datetime(2018, 12, 12, 0, 0, 0)
wb_end = datetime(2019, 1, 2, 0, 0, 0)
now = datetime.utcnow()
now = datetime.now(datetime.UTC)
return_string = ""
if wb_start > now:
diff = wb_start - now
Expand Down Expand Up @@ -1421,7 +1421,7 @@ def status():
Returns the amount of time the application has been running
:return: A string
"""
now = datetime.utcnow()
now = datetime.now(datetime.UTC)
diff = now - GlobalVars.startup_utc_date

return 'Running since {time} UTC ({relative})'.format(time=GlobalVars.startup_utc, relative=td_format(diff))
Expand Down

0 comments on commit 9da5dc2

Please sign in to comment.