DetectedOperationService temporary fix timezone problem 2

This commit is contained in:
ngfrolov 2024-03-29 08:50:17 +05:00
parent 38521940a6
commit 116cf4e3b0
Signed by: ng.frolov
GPG Key ID: E99907A0357B29A7

View File

@ -143,7 +143,6 @@ public class DetectedOperationService : IDetectedOperationService
const int minOperationLength = 5;
const int maxDetectorsInterpolationFrameLength = 30;
const int gap = maxDetectorsInterpolationFrameLength + minOperationLength;
//var timezone = telemetryService.GetTimezone(idTelemetry);
while (true)
{
@ -159,7 +158,7 @@ public class DetectedOperationService : IDetectedOperationService
.Select(t => t as TelemetryNewDataSaubDto)
.Select(t => new DetectableTelemetry
{
DateTime = t.DateTime,//TODO: <-- вот тут ошибка при присвоении DateTime с kind unspecified в DateTimeOffset времени назначается локальный часовой пояс.
DateTime = t.DateTime,
IdUser = t.IdUser,
Mode = t.Mode,
WellDepth = t.WellDepth,