Set appropriate date format for payment factory

This commit is contained in:
David Bomba 2023-12-08 22:59:55 +11:00
parent ddcaead160
commit 82bcd84c43

View File

@ -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);
}