aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2020-11-14 10:10:24 -0500
committerGalen Guyer <galen@galenguyer.com>2020-11-14 10:10:24 -0500
commit0786e9cde18448692466c61217d1d7d65f23594f (patch)
tree0d545b0ed107281b3792a30a7cb2f9bb8203852f /src
parentd4ad8d4a9fdc09c66ba8203c4cf2218496442d01 (diff)
drop year from updated string
Diffstat (limited to 'src')
-rw-r--r--src/App.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/App.js b/src/App.js
index 74d97be..6fdf77a 100644
--- a/src/App.js
+++ b/src/App.js
@@ -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} />