diff --git a/webapp/controller/BaseController.class.php b/webapp/controller/BaseController.class.php index af2212d8..b96a3a79 100644 --- a/webapp/controller/BaseController.class.php +++ b/webapp/controller/BaseController.class.php @@ -38,7 +38,7 @@ class BaseController { public function _setTimeOffset($seconds) { - $this->timeOffset = seconds; + $this->timeOffset = $seconds; } public function _getTodayLeadStr() diff --git a/webapp/controller/StakingController.class.php b/webapp/controller/StakingController.class.php index d0f75602..c8fb2002 100644 --- a/webapp/controller/StakingController.class.php +++ b/webapp/controller/StakingController.class.php @@ -14,6 +14,14 @@ class StakingController extends BaseAuthedController { const BADGE_TYPE = 2; const CEC_TYPE = 3; + public function _handlePre() + { + parent::_handlePre(); + if (SERVER_ENV != _ONLINE) { + myself()->_setTimeOffset(3600 * 24); + } + } + public function info() { $info = array(