mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Minor fixes for timezone
This commit is contained in:
parent
98706698d2
commit
e54525658b
@ -88,7 +88,7 @@ class StorePaymentRequest extends Request
|
||||
// $input['is_manual'] = true;
|
||||
|
||||
if (! isset($input['date'])) {
|
||||
$input['date'] = now()->addSeconds(auth()->user()->company->timezone()->utc_offset)->format('Y-m-d');
|
||||
$input['date'] = now()->addSeconds(auth()->user()->company()->timezone()->utc_offset)->format('Y-m-d');
|
||||
}
|
||||
|
||||
$this->replace($input);
|
||||
|
@ -71,7 +71,6 @@ class MarkPaid extends AbstractService
|
||||
$payment->is_manual = true;
|
||||
|
||||
if ($this->invoice->company->timezone()) {
|
||||
nlog($this->invoice->company->timezone()->utc_offset);
|
||||
$payment->date = now()->addSeconds($this->invoice->company->timezone()->utc_offset)->format('Y-m-d');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user