This commit is contained in:
M10T 2020-08-14 20:39:04 -04:00
parent 92b677baaa
commit 073df79286

View File

@ -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 (
<View style={styles.item}>
{dateInfo!==undefined?<Text style={styles.date}>{dateInfo}</Text>:<></>}