From ac873722b1714e988d38bac890c1b472d4c002e3 Mon Sep 17 00:00:00 2001 From: Eric Renken Date: Fri, 12 May 2023 22:17:19 -0400 Subject: [PATCH] Fix high low for Feels Like Low FIx raing rate hi date/time Fix date/time to be treated like UTC --- api/src/RedfieldWeather/RedfieldWeather.csproj | 6 +++--- rw-app/src/pages/HighLowPage.tsx | 2 +- rw-app/src/utilities/DateExtensions.ts | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/api/src/RedfieldWeather/RedfieldWeather.csproj b/api/src/RedfieldWeather/RedfieldWeather.csproj index ae381b9..04016cb 100644 --- a/api/src/RedfieldWeather/RedfieldWeather.csproj +++ b/api/src/RedfieldWeather/RedfieldWeather.csproj @@ -8,12 +8,12 @@ - + - + - + diff --git a/rw-app/src/pages/HighLowPage.tsx b/rw-app/src/pages/HighLowPage.tsx index eb21a1e..18b22ad 100644 --- a/rw-app/src/pages/HighLowPage.tsx +++ b/rw-app/src/pages/HighLowPage.tsx @@ -69,7 +69,7 @@ class HighLowPage extends React.Component<{ Feels Like Low {this.vantageProArchive?.thsw_index_lo}° F - {new Date(this.vantageProArchive?.thsw_index_lo_at!).toDisplayFormat()} + {new Date(this.vantageProArchive?.THSWIndexLowAt!).toDisplayFormat()} diff --git a/rw-app/src/utilities/DateExtensions.ts b/rw-app/src/utilities/DateExtensions.ts index 7489f85..5d2b791 100644 --- a/rw-app/src/utilities/DateExtensions.ts +++ b/rw-app/src/utilities/DateExtensions.ts @@ -13,6 +13,7 @@ Date.prototype.toDisplayFormat = function () { month: 'numeric', day: 'numeric', hour: 'numeric', - minute: '2-digit' + minute: '2-digit', + timeZone: 'UTC' }); }; \ No newline at end of file