fix daylight_saving_time
This commit is contained in:
parent
1fa59a0ca5
commit
96b94af981
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -27,7 +27,7 @@ def check_daylight_saving(current_time):
|
||||||
summer_time = t
|
summer_time = t
|
||||||
break
|
break
|
||||||
|
|
||||||
for day in range(24, 32):
|
for day in range(25, 32):
|
||||||
t = time.mktime((current_time[0], 10, day, 2, 0, 0, 0, 0))
|
t = time.mktime((current_time[0], 10, day, 2, 0, 0, 0, 0))
|
||||||
if time.localtime(t)[6] == 6:
|
if time.localtime(t)[6] == 6:
|
||||||
winter_time = t
|
winter_time = t
|
||||||
|
|
Loading…
Reference in a new issue