diff --git a/common/models/BlogSearch.php b/common/models/BlogSearch.php index 9f4c9eb..90824a5 100644 --- a/common/models/BlogSearch.php +++ b/common/models/BlogSearch.php @@ -110,7 +110,7 @@ 'between', 'date_add', $this->date_add_from, - $this->date_add_to, + (new \DateTime($this->date_add_to))->modify('+1 day')->format('Y-m-d') ]); $query->andFilterWhere([ diff --git a/common/models/GallerySearch.php b/common/models/GallerySearch.php index 5e8d422..55f551d 100644 --- a/common/models/GallerySearch.php +++ b/common/models/GallerySearch.php @@ -107,7 +107,7 @@ 'between', 'date_add', $this->date_add_from, - $this->date_add_to, + (new \DateTime($this->date_add_to))->modify('+1 day')->format('Y-m-d') ]); $query->andFilterWhere([ diff --git a/common/models/PortfolioSearch.php b/common/models/PortfolioSearch.php index e55d070..4e26fed 100644 --- a/common/models/PortfolioSearch.php +++ b/common/models/PortfolioSearch.php @@ -126,7 +126,7 @@ 'between', 'date_add', $this->date_add_from, - $this->date_add_to, + (new \DateTime($this->date_add_to))->modify('+1 day')->format('Y-m-d') ]); $query->andFilterWhere( diff --git a/common/models/VacancySearch.php b/common/models/VacancySearch.php index d567644..eb3c452 100644 --- a/common/models/VacancySearch.php +++ b/common/models/VacancySearch.php @@ -107,7 +107,7 @@ 'between', 'date_add', $this->date_add_from, - $this->date_add_to, + (new \DateTime($this->date_add_to))->modify('+1 day')->format('Y-m-d'), ]); $query->andFilterWhere([ diff --git a/common/widgets/views/courses_field.php b/common/widgets/views/courses_field.php index eb1d586..b468aef 100644 --- a/common/widgets/views/courses_field.php +++ b/common/widgets/views/courses_field.php @@ -25,7 +25,7 @@