mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 00:07:51 -06:00
CL-473 Print job duration time has the wrong format. Use the Cura format from the Prepare tab.
Subtask of CL-457 Cura plugin: primary visual improvements
This commit is contained in:
parent
eb85c28c10
commit
553a309d23
2 changed files with 6 additions and 8 deletions
|
@ -14,14 +14,7 @@ Rectangle
|
|||
|
||||
function getPrettyTime(time)
|
||||
{
|
||||
var hours = Math.floor(time / 3600)
|
||||
time -= hours * 3600
|
||||
var minutes = Math.floor(time / 60);
|
||||
time -= minutes * 60
|
||||
var seconds = Math.floor(time);
|
||||
|
||||
var finalTime = strPadLeft(hours, "0", 2) + ':' + strPadLeft(minutes,'0',2)+ ':' + strPadLeft(seconds,'0',2);
|
||||
return finalTime;
|
||||
return OutputDevice.formatDuration(time)
|
||||
}
|
||||
|
||||
function formatPrintJobPercent(printJob)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue