From 39e2bce6dde66716ff07c4411909ac9bd1737cc8 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Mon, 29 Jun 2020 16:32:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=91=98=E5=85=85=E5=80=BC?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/TimingController.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Application/Admin/Controller/TimingController.class.php b/Application/Admin/Controller/TimingController.class.php index 540ced5e8..14d431bde 100644 --- a/Application/Admin/Controller/TimingController.class.php +++ b/Application/Admin/Controller/TimingController.class.php @@ -349,6 +349,11 @@ class TimingController extends AdminController { echo "-------------------------------------------------------------\n"; $startTime = strtotime("20190829"); + + if (I("start_time")=="yesterday") { + $startTime = strtotime(date("Y-m-d",strtotime("-1 day"))); + } + $endTime = time(); if (I("start_time")) {