public function actionLog() { $dateBegin = !empty($_POST['dateBegin']) ? $_POST['dateBegin'] : date('Y-m-d', time()) . 'T00:00'; $dateEnd = !empty($_POST['dateEnd']) ? $_POST['dateEnd'] : date('Y-m-d\\TH:i', time()); echo $dateBegin . '<br>'; echo $dateEnd . '<br>'; $timestampBegin = Application::createTimestampFronInputDatelocal($dateBegin); $timestampEnd = Application::createTimestampFronInputDatelocal($dateEnd); $this->view->logBegin = date('ymdHis', $timestampBegin); $this->view->logEnd = date('ymdHis', $timestampEnd); $this->view->display($this->path . 'log_show.php'); }