From c7c70538c3766ff67cea50d6eff12e28d8af5c27 Mon Sep 17 00:00:00 2001 From: palica Date: Fri, 1 Dec 2017 11:22:39 +0100 Subject: [PATCH] formating changes for time display --- src/resources/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/js/app.js b/src/resources/js/app.js index 068addf..a7fe887 100644 --- a/src/resources/js/app.js +++ b/src/resources/js/app.js @@ -71,9 +71,9 @@ const Utils = { if(!end) end = Math.floor(Date.now()/1000); if(end - start > 3600) - return Math.floor((end-start)/3600) + 'hours, ' + Math.floor(((end-start)%3600)/60) + ' minutes'; + return Math.floor((end-start)/3600) + ' hours, ' + Math.floor(((end-start)%3600)/60) + ' minutes'; else if(end - start > 60) - return Math.floor((end-start)/60) + 'minutes, ' + ((end-start)%60) + ' seconds'; + return Math.floor((end-start)/60) + ' minutes, ' + ((end-start)%60) + ' seconds'; else return (end-start) + ' seconds'; }