summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--skins/jason/recordings.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/skins/jason/recordings.js b/skins/jason/recordings.js
index cc1faeb..7ac303f 100644
--- a/skins/jason/recordings.js
+++ b/skins/jason/recordings.js
@@ -12,8 +12,15 @@ minTime = function() {
Ext.form.TimeField.prototype.initDateFormat).clearTime();
};
+pad = function(n) {
+ return String("00" + parseInt(n)).slice(-2);
+};
+
SecondsToHMS = function(t) {
- return new Date(minTime().getTime()+(t * 1000)).dateFormat('H:i:s');
+ var s = t % 60;
+ var m = parseInt(t / 60) % 60;
+ var h = parseInt(t / 3600);
+ return h + ":" + pad(m) + ":" + pad(s);
};
/******************************************************************************/