How about these changes https://github.com/vyos/vyos-1x/blob/current/src/op_mode/powerctrl.py#L37
diff --git a/src/op_mode/powerctrl.py b/src/op_mode/powerctrl.py index 69af427e..c000d7d0 100755 --- a/src/op_mode/powerctrl.py +++ b/src/op_mode/powerctrl.py @@ -34,7 +34,11 @@ def utc2local(datetime): def parse_time(s): try: if re.match(r'^\d{1,2}$', s): - return datetime.strptime(s, "%M").time() + if (int(s) > 59): + s = str(int(s)//60) + ":" + str(int(s)%60) + return datetime.strptime(s, "%H:%M").time() + else: + return datetime.strptime(s, "%M").time() else: return datetime.strptime(s, "%H:%M").time() except ValueError: