Fixed logical bug in update

If update has only one date, delete the second date if task was
previously a timed task