mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for #584
This commit is contained in:
parent
565b26ba27
commit
c2c51360dd
@ -290,7 +290,13 @@ class Account extends Eloquent
|
|||||||
|
|
||||||
public function getCustomDateTimeFormat()
|
public function getCustomDateTimeFormat()
|
||||||
{
|
{
|
||||||
return $this->getCustomDateFormat() . ' ' . $this->getCustomTimeFormat();
|
$format = $this->datetime_format ? $this->datetime_format->format : DEFAULT_DATETIME_FORMAT;
|
||||||
|
|
||||||
|
if ($this->military_time) {
|
||||||
|
$format = str_replace('g:i a', 'H:i', $format);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $format;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getGatewayByType($type = PAYMENT_TYPE_ANY)
|
public function getGatewayByType($type = PAYMENT_TYPE_ANY)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user