From c9e7edf6274c442fbf18f5088ea6a1f8529dbec7 Mon Sep 17 00:00:00 2001 From: Andy Smy <47543767+AndySmee@users.noreply.github.com> Date: Thu, 17 Apr 2025 17:18:45 +0100 Subject: [PATCH] Update app.js --- apps/umpire/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/umpire/app.js b/apps/umpire/app.js index 919cca8a8..36b49312c 100644 --- a/apps/umpire/app.js +++ b/apps/umpire/app.js @@ -7,7 +7,7 @@ var overTimes = []; function addLog(timeSig, over, ball, matchEvent, metaData) { // The fields we want to put in out CSV file var csv = [ - timeSig.getTime(), + formatTimeOfDay(timeSig), over, ball, matchEvent, metaData + " " ]; @@ -20,7 +20,7 @@ function formatDuration(timeDate) { return (timeDate.getHours()-1) + ":" + timeDate.getMinutes().toString().padStart(2, "0") + ":" + timeDate.getSeconds().toString().padStart(2, "0") + ""; } -function formatTimeOfDay(timeSig) { return timeSig.getHours() + ":" + timeSig.getMinutes().toString().padStart(2, "0");} +function formatTimeOfDay(timeSig) { return timeSig.getHours() + ":" + timeSig.getMinutes().toString().padStart(2, "0") + ":" + timeSig.getSeconds().toString().padStart(2, "0");} function countDown(dir) {