diff --git a/src/webui/static/app/epg.js b/src/webui/static/app/epg.js index 954db0ca..acd27272 100644 --- a/src/webui/static/app/epg.js +++ b/src/webui/static/app/epg.js @@ -91,11 +91,11 @@ tvheadend.epg = function() { } function renderDuration(value){ - value = value / 60; /* Nevermind the seconds */ - + value = Math.floor(value / 60); + if(value >= 60) { var min = value % 60; - var hours = parseInt(value / 60); + var hours = Math.floor(value / 60); if(min == 0) { return hours + ' hrs';