time_circuit: fix bug where AM/PM lights would get stuck at PM