Skip to content

Commit

Permalink
Update chatcommands.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffschaller authored Nov 3, 2023
1 parent 7293b65 commit fa39a68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chatcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from globalvars import GlobalVars
import findspam
# noinspection PyUnresolvedReferences
from datetime import datetime
from datetime import datetime, timezone
from apigetpost import api_get_post, PostData
import datahandling
from datahandling import *
Expand Down 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.now(datetime.UTC)
now = datetime.now(tz=timezone.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.now(datetime.UTC)
now = datetime.now(tz=timezone.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 fa39a68

Please sign in to comment.