auto-schedule: adapted timezone shift to diplay time for a different country

This commit is contained in:
dymik739 2022-12-20 17:39:18 +02:00
parent 3e90701646
commit d87de2c767
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ if self.MESSAGE["text"].lower() == "!пара":
current_week = current_time.isocalendar()[1] % 2 current_week = current_time.isocalendar()[1] % 2
current_day = current_time.weekday() 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})") print(f"[DEBUG] Current day is {type(current_day)}({current_day})")
if current_day > 4 or current_day < 0: if current_day > 4 or current_day < 0: