From 36177cd55a238f2913bbfbd336a9ca49f3fef010 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 15 May 2022 10:42:11 +0800 Subject: [PATCH] 1 --- webapp/controller/BaseController.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webapp/controller/BaseController.class.php b/webapp/controller/BaseController.class.php index 169a8d7c..2c42ec97 100644 --- a/webapp/controller/BaseController.class.php +++ b/webapp/controller/BaseController.class.php @@ -11,6 +11,7 @@ class BaseController { { global $_myself; $_myself = $this; + $this->timeZone = 0; $this->nowtime = phpcommon\getNowTime(); } @@ -34,7 +35,7 @@ class BaseController { public function _getDaySeconds($time) { - return phpcommon\getDaySeconds($time); + return phpcommon\getDaySeconds($time, $this->timeZone); } public function _getTodayRemainSeconds() @@ -44,7 +45,7 @@ class BaseController { public function _getMondaySeconds() { - return phpcommon\getMondaySeconds($this->_getNowTime()); + return phpcommon\getMondaySeconds($this->_getNowTime(), $this->timeZone); } public function _rspErr($errcode, $errmsg)