Fixes warning in field type "datepicker"