diff --git a/Application/Admin/Controller/FinancialSummaryController.class.php b/Application/Admin/Controller/FinancialSummaryController.class.php index 5c64eec11..b75b0de48 100644 --- a/Application/Admin/Controller/FinancialSummaryController.class.php +++ b/Application/Admin/Controller/FinancialSummaryController.class.php @@ -43,7 +43,8 @@ class FinancialSummaryController extends AdminController } public function updateStatement() { - $temp = date('Y',time()).'-'.(date('m',time())-1); + + $temp = date('Y-m',strtotime(date('Y',time()).'-'.(date('m',time())-1).'-01')); $params = "php ".SUBSITE_INDEX." FinancialSummarySet/setMonthFinancialSummary/recount/1/count_date/{$temp}"; $r = D("CmdTasks")->addTask("FinancialSummary",$params); if($r){