A new diary record is generated when creating a diary.
When replacing an entry, an existing entry is replaced with the new entry with the same description.
The diary is set to done.