CC-1665: Scheduled stream rebroadcasting and recording
-when editing string should hav 00h 00m format.
This commit is contained in:
parent
56961e5f48
commit
183937b8e9
1 changed files with 8 additions and 1 deletions
|
@ -39,7 +39,14 @@ class Application_Model_Webstream{
|
|||
|
||||
public function getDefaultLength()
|
||||
{
|
||||
return $this->webstream->getDbLength();
|
||||
$dateString = $this->webstream->getDbLength();
|
||||
$arr = explode(":", $dateString);
|
||||
if (count($arr) == 3) {
|
||||
list($hours, $min, $sec) = $arr;
|
||||
$di = new DateInterval("PT{$hours}H{$min}M{$sec}S");
|
||||
return $di->format("%Hh %im");
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public function getDescription()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue