From 03838990b95b8f66cc638a5672383896e031edb1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 15 May 2022 10:45:39 +0800 Subject: [PATCH] 1 --- webapp/controller/BaseController.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webapp/controller/BaseController.class.php b/webapp/controller/BaseController.class.php index 2c42ec97..8a211f92 100644 --- a/webapp/controller/BaseController.class.php +++ b/webapp/controller/BaseController.class.php @@ -12,6 +12,9 @@ class BaseController { global $_myself; $_myself = $this; $this->timeZone = 0; + if (SERVER_ENV == _TEST) { + $this->timeZone = 8; + } $this->nowtime = phpcommon\getNowTime(); }