Use timezone when setting payment date
This commit is contained in:
parent
f82eecf2fb
commit
349f7f2621
1 changed files with 2 additions and 1 deletions
|
|
@ -606,6 +606,7 @@ class BasePaymentDriver
|
|||
|
||||
public function createPayment($ref = false, $paymentMethod = null)
|
||||
{
|
||||
$account = $this->account();
|
||||
$invitation = $this->invitation;
|
||||
$invoice = $this->invoice();
|
||||
$invoice->markSentIfUnsent();
|
||||
|
|
@ -618,7 +619,7 @@ class BasePaymentDriver
|
|||
$payment->client_id = $invoice->client_id;
|
||||
$payment->contact_id = $invitation->contact_id;
|
||||
$payment->transaction_reference = $ref;
|
||||
$payment->payment_date = date_create()->format('Y-m-d');
|
||||
$payment->payment_date = $account->getDateTime()->format('Y-m-d');
|
||||
$payment->ip = Request::ip();
|
||||
|
||||
$payment = $this->creatingPayment($payment, $paymentMethod);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue