mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -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();
|
||||
|
||||
$payment = PaymentFactory::create($user->company()->id, $user->id);
|
||||
$payment->date = now()->addSeconds($user->company()->utc_offset())->format('Y-m-d');
|
||||
|
||||
return $this->itemResponse($payment);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user