* finish task #5279.

This commit is contained in:
wangyidong
2019-02-20 14:34:22 +08:00
parent ac221ac35f
commit 7bcd62dfdc
11 changed files with 197 additions and 0 deletions
+19
View File
@@ -318,6 +318,25 @@ class custom extends control
$this->display();
}
/**
* Timezone.
*
* @access public
* @return void
*/
public function timezone()
{
if(strtolower($_SERVER['REQUEST_METHOD']) == "post")
{
$this->loadModel('setting')->setItems('system.common', fixer::input('post')->get());
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'reload'));
}
$this->view->title = $this->lang->custom->timezone;
$this->view->position[] = $this->lang->custom->timezone;
$this->display();
}
/**
* Ajax save custom fields.
*