add date and time to end bad mode