Merge branch 'main' of bitbucket.org:jubilian/nhance_partner_be
This commit is contained in:
commit
02c2b3739e
@ -111,8 +111,14 @@ class EnquiryController extends ResourceController
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($from_date) || empty(!$to_date)) {
|
||||
|
||||
|
||||
if (!empty($this->request->getGet('from_date'))) {
|
||||
$from_date = DateTime::createFromFormat('d-m-Y', $this->request->getGet('from_date'))->format('Y-m-d 00:00:00');
|
||||
$from_date = DateTime::createFromFormat('Y-m-d 00:00:00', $from_date)->format('d-m-Y');
|
||||
}
|
||||
if (!empty($this->request->getGet('to_date'))) {
|
||||
$to_date = DateTime::createFromFormat('d-m-Y', $this->request->getGet('to_date'))->format('Y-m-d 23:59:59');
|
||||
$to_date = DateTime::createFromFormat('Y-m-d 23:59:59', $to_date)->format('d-m-Y');
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user