mirror of
https://github.com/solero/houdini.git
synced 2024-11-25 15:07:24 +00:00
Use fromtimestamp
instead of utcfromtimestamp
to calculate rainbow quest availability
This commit is contained in:
parent
ac857f7925
commit
44bf627dc5
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user