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']);