This commit is contained in:
Hillel Coren 2015-12-31 10:04:12 +02:00
parent 565b26ba27
commit c2c51360dd
2 changed files with 8 additions and 2 deletions

View File

@ -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)