mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-19 16:01:34 +02:00
Fixes for #584
This commit is contained in:
parent
565b26ba27
commit
c2c51360dd
@ -290,7 +290,13 @@ class Account extends Eloquent
|
||||
|
||||
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)
|
||||
|
@ -31,7 +31,7 @@ class TaskPresenter extends Presenter {
|
||||
$start = $account->formatDateTime("@{$start}");
|
||||
$end = $account->formatTime("@{$end}");
|
||||
|
||||
$times[] = "###{$start} - {$end}";
|
||||
$times[] = "### {$start} - {$end}";
|
||||
}
|
||||
|
||||
return implode("\n", $times);
|
||||
|
Loading…
Reference in New Issue
Block a user