This commit is contained in:
Stefan Breunig
2013-02-07 16:06:05 +01:00
parent 36a44cfe9f
commit 5a022699ae
2 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ window.unixTimeToHHmm = function(time) {
if(!time) return null;
var d = new Date(typeof time === 'string' ? parseInt(time) : time);
var h = '' + d.getHours(); h = h.length === 1 ? '0' + h : h;
var s = '' + d.getSeconds(); s = s.length === 1 ? '0' + s : s;
var s = '' + d.getMinutes(); s = s.length === 1 ? '0' + s : s;
return h + ':' + s;
}