Use fromtimestamp instead of utcfromtimestamp to calculate rainbow quest availability

This commit is contained in:
Ben 2020-04-06 19:27:46 +01:00
parent ac857f7925
commit 44bf627dc5

View File

@ -51,7 +51,8 @@ async def handle_rainbow_quest_cookie(p):
if task_completion: if task_completion:
quest_wait = RainbowQuestWaitMember if p.is_member else RainbowQuestWait quest_wait = RainbowQuestWaitMember if p.is_member else RainbowQuestWait
task_availability = datetime.utcfromtimestamp(int(task_completion)) + quest_wait task_availability = datetime.fromtimestamp(int(task_completion)) + quest_wait
minutes_remaining = int((task_availability - current_datetime).total_seconds() // 60) minutes_remaining = int((task_availability - current_datetime).total_seconds() // 60)
task_availability_unix = task_availability.timestamp() task_availability_unix = task_availability.timestamp()
else: else: