From e014128ddcfbd06a3f561d80286ac3b399c533b1 Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 3 Apr 2023 21:20:39 -0400 Subject: [PATCH] show hourly forecasts after current time --- WeatherDashboard.Web/Views/Home/Index.cshtml | 1 + 1 file changed, 1 insertion(+) diff --git a/WeatherDashboard.Web/Views/Home/Index.cshtml b/WeatherDashboard.Web/Views/Home/Index.cshtml index f9b467d..48f17d4 100644 --- a/WeatherDashboard.Web/Views/Home/Index.cshtml +++ b/WeatherDashboard.Web/Views/Home/Index.cshtml @@ -34,6 +34,7 @@ }; var hourForecasts = forecast.HourForecasts + .Where(f => f.Time > DateTime.Now) .Join(displayHours, f => f.Time.Value.Hour, d => d.Key, (f, d) => new { TimeOfDay = d.Value,