aboutsummaryrefslogtreecommitdiff
path: root/src/App.js
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2021-09-17 16:17:10 -0400
committerGalen Guyer <galen@galenguyer.com>2021-09-17 16:17:10 -0400
commitcd83ac5507bee49c6792effb70bf44f49fc325f0 (patch)
treeacbc8e87dd411c52a73cea6570d316137e42cee0 /src/App.js
parent21cce2532232f11548595474b414fb4ba7deaf1f (diff)
fix date timezone for updates
Diffstat (limited to 'src/App.js')
-rw-r--r--src/App.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/App.js b/src/App.js
index 41dc409..3edd599 100644
--- a/src/App.js
+++ b/src/App.js
@@ -61,8 +61,8 @@ function App() {
const latest = data[data.length - 1];
const prior = data[data.length - (1 + timeDifference)];
- const lastUpdate = DateTime.fromSQL(latest.last_updated, { zone: "UTC" }).setZone(local);
- const priorUpdate = DateTime.fromSQL(prior.last_updated, { zone: "UTC" }).setZone(local);
+ const lastUpdate = DateTime.fromSQL(latest.last_updated).setZone(local);
+ const priorUpdate = DateTime.fromSQL(prior.last_updated).setZone(local);
// let positiveCases = [];
// for (let i = 5; i < data.length; i++) {
// positiveCases.push({