From d87de2c76739b4e7975911930e9b382b3d5b4443 Mon Sep 17 00:00:00 2001 From: dymik739 Date: Tue, 20 Dec 2022 17:39:18 +0200 Subject: [PATCH] auto-schedule: adapted timezone shift to diplay time for a different country --- modules/auto-schedule/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auto-schedule/index.py b/modules/auto-schedule/index.py index b3fa369..7b1ba1d 100644 --- a/modules/auto-schedule/index.py +++ b/modules/auto-schedule/index.py @@ -6,7 +6,7 @@ if self.MESSAGE["text"].lower() == "!пара": current_week = current_time.isocalendar()[1] % 2 current_day = current_time.weekday() - current_seconds = current_time.hour * 3600 + current_time.minute * 60 + current_time.second + current_seconds = (current_time.hour + 1) * 3600 + current_time.minute * 60 + current_time.second print(f"[DEBUG] Current day is {type(current_day)}({current_day})") if current_day > 4 or current_day < 0: