fix date input on firefox and chrome