diff options
author | Galen Guyer <galen@galenguyer.com> | 2021-09-17 16:17:10 -0400 |
---|---|---|
committer | Galen Guyer <galen@galenguyer.com> | 2021-09-17 16:17:10 -0400 |
commit | cd83ac5507bee49c6792effb70bf44f49fc325f0 (patch) | |
tree | acbc8e87dd411c52a73cea6570d316137e42cee0 /src/App.js | |
parent | 21cce2532232f11548595474b414fb4ba7deaf1f (diff) |
fix date timezone for updates
Diffstat (limited to 'src/App.js')
-rw-r--r-- | src/App.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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({ |