From 62f86a1397a6d0939873d40e21c3b67470654b03 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Tue, 16 Apr 2024 17:19:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=8C=85=E5=BD=93=E5=89=8D=E6=9C=88=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=8C=BA=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/OrderServicePackageService.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Services/OrderServicePackageService.php b/app/Services/OrderServicePackageService.php index caad73e..4db976c 100644 --- a/app/Services/OrderServicePackageService.php +++ b/app/Services/OrderServicePackageService.php @@ -1138,15 +1138,15 @@ class OrderServicePackageService extends BaseService $days = (int)$month_time * 30; - // 当前所属月开始时间 - $current_month_finish_date = date('Y年m月d日 H时i分', strtotime($start_time . " +$days days")); - // 当前所属月结束时间 - $current_month_start_date = date('Y年m月d日 H时i分', strtotime($current_month_finish_date . "-30 days")); + $current_month_finish_date = date('Y-m-d H:i:s', strtotime($start_time . " +$days days")); + + // 当前所属月开始时间 + $current_month_start_date = date('Y-m-d H:i:s', strtotime($current_month_finish_date . "-30 days")); $result = array(); - $result['current_month_start_date'] = $current_month_start_date; - $result['current_month_finish_date'] = $current_month_finish_date; + $result['current_month_start_date'] = date('Y年m月d日 H时i分', strtotime($current_month_start_date)); + $result['current_month_finish_date'] = date('Y年m月d日 H时i分', strtotime($current_month_finish_date)); return $result; }