diff options
author | Galen Guyer <galen@galenguyer.com> | 2020-11-14 10:10:24 -0500 |
---|---|---|
committer | Galen Guyer <galen@galenguyer.com> | 2020-11-14 10:10:24 -0500 |
commit | 0786e9cde18448692466c61217d1d7d65f23594f (patch) | |
tree | 0d545b0ed107281b3792a30a7cb2f9bb8203852f /src | |
parent | d4ad8d4a9fdc09c66ba8203c4cf2218496442d01 (diff) |
drop year from updated string
Diffstat (limited to 'src')
-rw-r--r-- | src/App.js | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -31,7 +31,16 @@ function App() { return ( <div className="App"> <h1>RIT Covid Dashboard</h1> - <h3>Last Updated: {lastUpdate.toLocaleString(DateTime.DATETIME_FULL)}</h3> + <h3> + Last Updated:{" "} + {lastUpdate.toLocaleString({ + weekday: "long", + month: "long", + day: "2-digit", + hour: "2-digit", + minute: "2-digit", + })} + </h3> <div className="Section"> <Card name="Total Student Cases" latest={latest.total_students} prior={prior.total_students} /> <Card name="Total Staff Cases" latest={latest.total_staff} prior={prior.total_staff} /> |