diff --git a/build/year-progress.py b/build/year-progress.py index e06f5bd..4ad64b8 100644 --- a/build/year-progress.py +++ b/build/year-progress.py @@ -175,11 +175,11 @@ def getHomoSapiens(yearPercent): return f"Homo Sapiens have been around for ~{-math.floor(yearsUntilHumans)} years" def getTemplate(timestamp): - now = datetime.datetime.fromtimestamp(timestamp) + now = datetime.datetime.fromtimestamp(timestamp).astimezone(None) nowTime = now.strftime("%H:%M") nowDate = now.strftime("%A") + " " + now.strftime("%-d") + " " + now.strftime("%B") - delta = now - datetime.datetime(day=1,month=1,year=now.year) + delta = now - datetime.datetime(day=1,month=1,year=now.year).astimezone(None) totalDays = datetime.datetime(day=1,month=1,year=now.year+1) - datetime.datetime(day=1,month=1,year=now.year) yearPercent = delta/totalDays