From 073df792860d9dfdce3068a3ae3207c6da80245f Mon Sep 17 00:00:00 2001 From: M10T Date: Fri, 14 Aug 2020 20:39:04 -0400 Subject: [PATCH] Bug fix --- app/Announcements.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Announcements.js b/app/Announcements.js index 7496b81..4b5cabd 100644 --- a/app/Announcements.js +++ b/app/Announcements.js @@ -23,8 +23,9 @@ import { url } from './resources/fetchInfo.json' const Announcement = ({item}) => { const date = new Date - const dateStr = `${date.getMonth()+1}/${date.getUTCDate()}/${date.getFullYear()}` + const dateStr = `${date.getMonth()+1}/${date.getDate()}/${date.getFullYear()}` const dateInfo = dateStr===item.item.date&&item.item.time!==undefined?item.item.time:item.item.date; + console.log(dateStr) return ( {dateInfo!==undefined?{dateInfo}:<>}