fix dates in edit mode