Fix date auto-defaulting in edit view.