Fix bug of date error in therapy editor