Update the date when updating an existing document