From 89c50c995d5a611852e433df9431c0142d537138 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 11 Dec 2020 09:29:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E7=BB=9F=E8=AE=A1=E6=94=B9?= =?UTF-8?q?=E6=88=90=E5=87=8C=E6=99=A82=E7=82=B9=E5=BC=80=E5=A7=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/tasks/statistic_school_daily_report_task.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/tasks/statistic_school_daily_report_task.rb b/app/tasks/statistic_school_daily_report_task.rb index ad08e06e..aee59013 100644 --- a/app/tasks/statistic_school_daily_report_task.rb +++ b/app/tasks/statistic_school_daily_report_task.rb @@ -61,8 +61,8 @@ class StatisticSchoolDailyReportTask def yesterday @_yesterday ||= begin - # 每日凌晨5点为节点 - end_time = Time.zone.now.beginning_of_day + 5.hour + # 每日凌晨2点为节点 + end_time = Time.zone.now.beginning_of_day + 2.hour begin_time = end_time - 1.day begin_time..end_time end