mirror of
https://github.com/Blair-SGA-Dev-Team/blazerapp.git
synced 2024-11-22 04:51:15 -05:00
Bug fix
This commit is contained in:
parent
92b677baaa
commit
073df79286
|
@ -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>:<></>}
|
||||
|
|
Loading…
Reference in New Issue
Block a user