diff --git a/AsbCloudInfrastructure/Services/DailyReport/DailyReportService.cs b/AsbCloudInfrastructure/Services/DailyReport/DailyReportService.cs index 807b10ca..afa6c0df 100644 --- a/AsbCloudInfrastructure/Services/DailyReport/DailyReportService.cs +++ b/AsbCloudInfrastructure/Services/DailyReport/DailyReportService.cs @@ -48,9 +48,10 @@ namespace AsbCloudInfrastructure.Services.DailyReport public async Task GetOrGenerateAsync(int idWell, DateTime date, CancellationToken token) { - var dailyReportDto = await GetAsync(idWell, date, token); + var dateOnly = DateTime.SpecifyKind(date.Date, DateTimeKind.Unspecified); + var dailyReportDto = await GetAsync(idWell, dateOnly, token); if (dailyReportDto is null) - dailyReportDto = await MakeDefaultDailyReportAsync(idWell, date, token); + dailyReportDto = await MakeDefaultDailyReportAsync(idWell, dateOnly, token); return dailyReportDto; }