diff --git a/AsbCloudInfrastructure/Repository/DetectedOperationRepository.cs b/AsbCloudInfrastructure/Repository/DetectedOperationRepository.cs index 3cbb9c07..21db64ba 100644 --- a/AsbCloudInfrastructure/Repository/DetectedOperationRepository.cs +++ b/AsbCloudInfrastructure/Repository/DetectedOperationRepository.cs @@ -60,7 +60,8 @@ public class DetectedOperationRepository : CrudRepositoryBase o.OperationCategory); var entities = await query.ToArrayAsync(token); - var dtos = entities.Select(Convert); + var offset = telemetryService.GetTimezone(request.IdTelemetry).Offset; + var dtos = entities.Select(o => Convert(o, offset)); return dtos; } @@ -181,13 +182,11 @@ public class DetectedOperationRepository : CrudRepositoryBase(); - dto.DateStart = src.DateStart.ToOffset(timezone.Offset); - dto.DateEnd = src.DateEnd.ToOffset(timezone.Offset); + dto.DateStart = src.DateStart.ToOffset(offset); + dto.DateEnd = src.DateEnd.ToOffset(offset); return dto; }