mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 22:14:36 -04:00
Set appropriate date format for payment factory
This commit is contained in:
parent
ddcaead160
commit
82bcd84c43
@ -155,6 +155,7 @@ class PaymentController extends BaseController
|
|||||||
$user = auth()->user();
|
$user = auth()->user();
|
||||||
|
|
||||||
$payment = PaymentFactory::create($user->company()->id, $user->id);
|
$payment = PaymentFactory::create($user->company()->id, $user->id);
|
||||||
|
$payment->date = now()->addSeconds($user->company()->utc_offset())->format('Y-m-d');
|
||||||
|
|
||||||
return $this->itemResponse($payment);
|
return $this->itemResponse($payment);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user