From 67c24e229ec26b129402eca355ac3bb0b40e42f3 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Mon, 20 Dec 2021 14:53:01 +0800 Subject: [PATCH] settter --- app/controller/api/Coupon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index df635bb..f1095fb 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -189,7 +189,7 @@ class Coupon extends Base $item->couponName = $item->couponMain->name; } //重置过期时间 - $item->endTimeText = date("y-m-d",strtotime($item->endTime)); + $item->endTimeText = date("Y-m-d",strtotime($item->endTime)); }); $res['list'] = multiTwoArrayKeysExcludeFilter($res['list']->toArray(), ['sort_weight']);