CC-4855: System->Preferences->Fade in/out settings: Number's format is incorrect.
-use existing function to convert seconds to time format
This commit is contained in:
parent
77768aa7ca
commit
ad0879996d
2 changed files with 2 additions and 13 deletions
|
@ -417,16 +417,5 @@ class Application_Common_DateHelper
|
||||||
|
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Returns a string of seconds converted into 'H:i:s.t' format
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public static function convertSecondsToTimeFormat($p_seconds)
|
|
||||||
{
|
|
||||||
$time = explode('.', $p_seconds);
|
|
||||||
$seconds = $time[0];
|
|
||||||
$milliseconds = $time[1];
|
|
||||||
return sprintf("%02d%s%02d%s%02d%s%d", floor($seconds/3600), ':', ($seconds/60)%60, ':', $seconds%60, '.', $milliseconds);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -451,8 +451,8 @@ class Application_Model_Scheduler
|
||||||
|
|
||||||
// default fades are in seconds
|
// default fades are in seconds
|
||||||
// we need to convert to '00:00:00' format
|
// we need to convert to '00:00:00' format
|
||||||
$file['fadein'] = Application_Common_DateHelper::convertSecondsToTimeFormat($file['fadein']);
|
$file['fadein'] = Application_Common_DateHelper::secondsToPlaylistTime($file['fadein']);
|
||||||
$file['fadeout'] = Application_Common_DateHelper::convertSecondsToTimeFormat($file['fadeout']);
|
$file['fadeout'] = Application_Common_DateHelper::secondsToPlaylistTime($file['fadeout']);
|
||||||
|
|
||||||
$sched->setDbStarts($nextStartDT)
|
$sched->setDbStarts($nextStartDT)
|
||||||
->setDbEnds($endTimeDT)
|
->setDbEnds($endTimeDT)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue