Установлен Kind в unspecified для dateTime в методе GetOrDefaultDataDateRange

This commit is contained in:
Olga Nemt 2024-05-20 09:22:52 +03:00
parent 43b89b8db8
commit 8590156dbd

View File

@ -152,8 +152,8 @@ namespace AsbCloudInfrastructure.Services.SAUB
if (!cacheItem.LastData.Any()) if (!cacheItem.LastData.Any())
return null; return null;
var from = cacheItem.FirstByDate.DateTime; var from = DateTime.SpecifyKind(cacheItem.FirstByDate.DateTime, DateTimeKind.Unspecified);
var to = cacheItem.LastData[^1].DateTime; var to = DateTime.SpecifyKind(cacheItem.LastData[^1].DateTime, DateTimeKind.Unspecified);
return new DatesRangeDto return new DatesRangeDto
{ {