Unnecessary if statement not allowing to set is_all_day to False