mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-03 11:09:27 +00:00
Fixed Coupon end date to be end of the day
This commit is contained in:
@@ -14,7 +14,7 @@ class datestamp implements CastsAttributes
|
||||
*/
|
||||
public function get(Model $model, string $key, mixed $value, array $attributes): string
|
||||
{
|
||||
return date('Y-m-d', $value);
|
||||
return date('Y-m-d H:i:s', $value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -64,6 +64,8 @@ class CouponController extends Controller
|
||||
}
|
||||
$num = (int) $request->input('num');
|
||||
$data = $request->only(['name', 'type', 'priority', 'usable_times', 'value', 'start_time', 'end_time']);
|
||||
$data['end_time'] .= ' 23:59:59';
|
||||
|
||||
$data['limit'] = [
|
||||
'minimum' => $request->input('minimum'),
|
||||
'used' => $request->input('used'),
|
||||
|
||||
Reference in New Issue
Block a user