mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Localize timezonen for payment date
This commit is contained in:
parent
4efec42670
commit
4080c47e9b
@ -61,6 +61,9 @@ class MarkPaid extends AbstractService
|
||||
$payment->currency_id = $this->invoice->client->getSetting('currency_id');
|
||||
$payment->is_manual = true;
|
||||
|
||||
if($this->invoice->company->timezone())
|
||||
$payment->date = now()->addSeconds($this->invoice->company->timezone()->utc_offset)->format('Y-m-d');
|
||||
|
||||
$payment_type_id = $this->invoice->client->getSetting('payment_type_id');
|
||||
|
||||
if((int)$payment_type_id > 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user