@@ -37,7 +37,7 @@ def __init__(self, parent, main_app, type):
3737 validatecommand = (main_app .validate_cmd , "%d" , "%P" ),
3838 )
3939 hourValue = str (value // 3600 )
40- if self .type == "Scheduled" and self .time_format == "12 hours" and self .time_string == "PM" and int (hourValue ) >= 12 :
40+ if self .type == "Scheduled" and self .time_format == "12 hours" and self .time_string == "PM" and int (hourValue ) >= 12 :
4141 hourInput .insert (0 , int (hourValue ) - 12 )
4242 else :
4343 hourInput .insert (0 , hourValue )
@@ -121,7 +121,7 @@ def setNewFixedHour(self, hour, min, sec, main_app):
121121 hour = int (hour )
122122 min = int (min )
123123 sec = int (sec )
124- hourCondition = (hour > 24 and self .time_format == "24 hours" or hour > 12 and self .time_format == "12 hours" )
124+ hourCondition = (hour > 24 and self .type != "Scheduled" ) or ( self . type == "Scheduled" and hour > 24 and self . time_format == "24 hours" or self . type == "Scheduled" and hour > 12 and self .time_format == "12 hours" )
125125 if hourCondition or min > 60 or sec > 60 :
126126 causes = []
127127 if hourCondition :
@@ -140,7 +140,7 @@ def setNewFixedHour(self, hour, min, sec, main_app):
140140 else :
141141 messagebox .showerror ("Error" , f'{ causes [0 ]} { main_app .text_content ["options_menu" ]["playback_menu" ]["for_interval_settings" ]["error_new_value_single" ]} ' )
142142 return
143- if self .type != "Interval" and self .time_string == "PM" and self .time_format == "12 hours" :
143+ if self .type != "Interval" and self .time_string == "PM" and self .time_format == "12 hours" and self . type == "Scheduled" :
144144 hour += 12
145145 total_sec = hour * 3600 + min * 60 + sec
146146 if self .type == "Interval" :
0 commit comments