Clear output buffer in exit_with_error()
Convert timestamps to db formatted value in form->db_value_set