From 3ba6e5ce9972fbd8d72079e3fa568a63faa2ea64 Mon Sep 17 00:00:00 2001 From: Andy Smy <47543767+AndySmee@users.noreply.github.com> Date: Mon, 12 May 2025 21:25:06 +0100 Subject: [PATCH] Update app.js Change new innings to use locale date --- apps/umpire/app.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/umpire/app.js b/apps/umpire/app.js index d55b5cbb2..ef6be6528 100644 --- a/apps/umpire/app.js +++ b/apps/umpire/app.js @@ -103,8 +103,7 @@ function showLog() { draw : (idx, r) => { g.setBgColor((idx&1)?"#000":"#112").clearRect(r.x,r.y,r.x+r.w-1,r.y+r.h-1); if(log[idx].matchEvent==/*LANG*/"Over Duration" - || log[idx].matchEvent==/*LANG*/"Innings Duration" - || log[idx].matchEvent==/*LANG*/"New Innings"){ + || log[idx].matchEvent==/*LANG*/"Innings Duration"){ g.setFont("Vector", 22).drawString( log[idx].matchEvent,r.x+6,r.y+2); } else { @@ -387,7 +386,7 @@ function newInnings() { } }); } else { - addLog(timeSig, oversPerInnings + 1, ballsPerOver, "New Innings", timeSig); + addLog(timeSig, oversPerInnings + 1, ballsPerOver, "New Innings", require("locale").date(new Date(), 1)); } }