Skip to content

Commit

Permalink
Merge pull request #18 from erenken/work/fixHighLow
Browse files Browse the repository at this point in the history
Fix several display issues.
  • Loading branch information
erenken committed May 13, 2023
2 parents 760c407 + ac87372 commit 4136694
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions api/src/RedfieldWeather/RedfieldWeather.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Azure.Data.Tables" Version="12.8.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.13.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.14.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.0.13" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Timer" Version="4.2.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.9.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.10.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="7.0.0" />
<PackageReference Include="myNOC.WeatherLink" Version="0.1.14" />
<PackageReference Include="myNOC.WeatherLink" Version="0.1.16" />
</ItemGroup>
<ItemGroup>
<None Update="app.settings.json">
Expand Down
2 changes: 1 addition & 1 deletion rw-app/src/pages/HighLowPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class HighLowPage extends React.Component<{
<Row>
<Col>Feels Like Low</Col>
<Col align='end'>{this.vantageProArchive?.thsw_index_lo}&deg; F</Col>
<Col align='end'>{new Date(this.vantageProArchive?.thsw_index_lo_at!).toDisplayFormat()}</Col>
<Col align='end'>{new Date(this.vantageProArchive?.THSWIndexLowAt!).toDisplayFormat()}</Col>
</Row>
</Card.Body>
<Card.Footer>
Expand Down
3 changes: 2 additions & 1 deletion rw-app/src/utilities/DateExtensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Date.prototype.toDisplayFormat = function () {
month: 'numeric',
day: 'numeric',
hour: 'numeric',
minute: '2-digit'
minute: '2-digit',
timeZone: 'UTC'
});
};

0 comments on commit 4136694

Please sign in to comment.