forked from ddrilling/AsbCloudServer
Лишнее приведение ко времени куста
This commit is contained in:
parent
40860c0563
commit
a975643fd1
@ -112,9 +112,12 @@ namespace AsbCloudInfrastructure.Repository
|
||||
{
|
||||
var dto = well.Adapt<WellDto>();
|
||||
dto.WellType = well.WellType.Caption;
|
||||
dto.LastTelemetryDate = well.IdTelemetry != null
|
||||
? telemetryService.GetDatesRange(well.IdTelemetry.Value).To.ToOffset(TimeSpan.FromHours(well.Timezone.Hours))
|
||||
: DateTimeOffset.MinValue;
|
||||
|
||||
dto.LastTelemetryDate = DateTimeOffset.MinValue;
|
||||
|
||||
if (well.IdTelemetry != null)
|
||||
dto.LastTelemetryDate = telemetryService.GetDatesRange(well.IdTelemetry.Value).To;
|
||||
|
||||
dto.Cluster = gCluster.Key.Caption;
|
||||
dto.Deposit = gDeposit.Key.Caption;
|
||||
return dto;
|
||||
|
Loading…
Reference in New Issue
Block a user