forked from ddrilling/AsbCloudServer
Fix TelemetryDataSaubController.GetByWellAsync(..). Ошибка приведения к UTC при дефолтной дате.
This commit is contained in:
parent
d0eeddaca4
commit
3d0fa5d5ef
@ -102,7 +102,7 @@ namespace AsbCloudInfrastructure.Services.SAUB
|
||||
if (dateBegin == default)
|
||||
{
|
||||
var dateRange = telemetryDataCache.GetOrDefaultDataDateRange(telemetry.Id);
|
||||
dateBeginUtc = (dateRange?.To ?? DateTimeOffset.UtcNow)
|
||||
dateBeginUtc = (dateRange?.To.ToUniversalTime() ?? DateTimeOffset.UtcNow)
|
||||
.AddSeconds(-intervalSec);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user