This commit is contained in:
aozhiwei 2022-05-15 10:42:11 +08:00
parent 53a68e2af9
commit 36177cd55a

View File

@ -11,6 +11,7 @@ class BaseController {
{ {
global $_myself; global $_myself;
$_myself = $this; $_myself = $this;
$this->timeZone = 0;
$this->nowtime = phpcommon\getNowTime(); $this->nowtime = phpcommon\getNowTime();
} }
@ -34,7 +35,7 @@ class BaseController {
public function _getDaySeconds($time) public function _getDaySeconds($time)
{ {
return phpcommon\getDaySeconds($time); return phpcommon\getDaySeconds($time, $this->timeZone);
} }
public function _getTodayRemainSeconds() public function _getTodayRemainSeconds()
@ -44,7 +45,7 @@ class BaseController {
public function _getMondaySeconds() public function _getMondaySeconds()
{ {
return phpcommon\getMondaySeconds($this->_getNowTime()); return phpcommon\getMondaySeconds($this->_getNowTime(), $this->timeZone);
} }
public function _rspErr($errcode, $errmsg) public function _rspErr($errcode, $errmsg)