From cd83ac5507bee49c6792effb70bf44f49fc325f0 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Fri, 17 Sep 2021 16:17:10 -0400 Subject: fix date timezone for updates --- src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/App.js') 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({ -- cgit v1.2.3