diff --git a/templates/stations/reports/listeners.js.phtml b/templates/stations/reports/listeners.js.phtml
index 6cda4d18f..1d9f2d321 100644
--- a/templates/stations/reports/listeners.js.phtml
+++ b/templates/stations/reports/listeners.js.phtml
@@ -128,6 +128,26 @@ $(function () {
var tlh_hours = tlh_seconds / 3600;
return Math.round((tlh_hours + 0.00001) * 100) / 100;
}
+ },
+ methods: {
+ formatTime (time) {
+ let sec_num = parseInt(time, 10);
+
+ let hours = Math.floor(sec_num / 3600);
+ let minutes = Math.floor((sec_num - (hours * 3600)) / 60);
+ let seconds = sec_num - (hours * 3600) - (minutes * 60);
+
+ if (hours < 10) {
+ hours = '0' + hours;
+ }
+ if (minutes < 10) {
+ minutes = '0' + minutes;
+ }
+ if (seconds < 10) {
+ seconds = '0' + seconds;
+ }
+ return (hours !== '00' ? hours + ':' : '') + minutes + ':' + seconds;
+ }
}
});
diff --git a/templates/stations/reports/listeners.phtml b/templates/stations/reports/listeners.phtml
index eddeb3312..97966b8dc 100644
--- a/templates/stations/reports/listeners.phtml
+++ b/templates/stations/reports/listeners.phtml
@@ -59,6 +59,7 @@ $assets
=__('IP')?>
+ =__('Time')?>
=__('Time (sec)')?>
=__('User Agent')?>
=__('Stream')?>
@@ -68,6 +69,7 @@ $assets