From d73da44aa5b70e7853f878e4e7985dd6b4ee65bf Mon Sep 17 00:00:00 2001 From: Olav Date: Mon, 3 Jul 2023 00:06:19 -0700 Subject: [PATCH] Show date when transmission is previous day --- frontend/src/Call/components/CallItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Call/components/CallItem.js b/frontend/src/Call/components/CallItem.js index c253d86..338f196 100644 --- a/frontend/src/Call/components/CallItem.js +++ b/frontend/src/Call/components/CallItem.js @@ -109,7 +109,7 @@ const CallItem = (props) => { {playStatus} {call.len} {talkgroup} - {time.toLocaleTimeString()} + {`${time.toLocaleTimeString()} ${time.toLocaleDateString() !== new Date().toLocaleDateString() ? time.getMonth() + 1 + '/' + time.getDate() : ''}`} setStarVisible(true)} onMouseLeave={() => setStarVisible(false)} onClick={handleStarClicked}>{starButton} );