diff options
Diffstat (limited to 'src/content/React-CSharp/Controllers/WeatherForecastController.cs')
-rw-r--r-- | src/content/React-CSharp/Controllers/WeatherForecastController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/React-CSharp/Controllers/WeatherForecastController.cs b/src/content/React-CSharp/Controllers/WeatherForecastController.cs index 06c83ba..219983c 100644 --- a/src/content/React-CSharp/Controllers/WeatherForecastController.cs +++ b/src/content/React-CSharp/Controllers/WeatherForecastController.cs @@ -29,7 +29,7 @@ public class WeatherForecastController : ControllerBase { return Enumerable.Range(1, 5).Select(index => new WeatherForecast { - Date = DateTime.Now.AddDays(index), + Date = DateOnly.FromDateTime(DateTime.Now.AddDays(index)), TemperatureC = Random.Shared.Next(-20, 55), Summary = Summaries[Random.Shared.Next(Summaries.Length)] }) |