diff --git a/code/Controllers/CMSMain.php b/code/Controllers/CMSMain.php index 8ea0251b40..dde45200c6 100644 --- a/code/Controllers/CMSMain.php +++ b/code/Controllers/CMSMain.php @@ -432,12 +432,12 @@ public function SearchForm() 'q[LastEditedFrom]', _t('CMSSearch.FILTERDATEFROM', 'From') ); - $dateFrom->setShowCalendar(true); + $dateFrom->setHTML5(true); $dateTo = new DateField( 'q[LastEditedTo]', _t('CMSSearch.FILTERDATETO', 'To') ); - $dateTo->setShowCalendar(true); + $dateTo->setHTML5(true); $pageFilter = new DropdownField( 'q[FilterClass]', _t('CMSMain.PAGES', 'Page status'),