forked from ddrilling/AsbCloudServer
Фикс TelemetryDataSpinService
This commit is contained in:
parent
3bd058e9c8
commit
53715dfaaa
@ -16,14 +16,14 @@ namespace AsbCloudInfrastructure.Services.SAUB
|
||||
: base(db, telemetryService, telemetryDataCache)
|
||||
{ }
|
||||
|
||||
public override TelemetryDataSpin Convert(TelemetryDataSpinDto src, double timezoneOffset)
|
||||
protected override TelemetryDataSpin Convert(TelemetryDataSpinDto src, double timezoneOffset)
|
||||
{
|
||||
var entity = src.Adapt<TelemetryDataSpin>();
|
||||
entity.DateTime = src.DateTime.ToUtcDateTimeOffset(timezoneOffset);
|
||||
return entity;
|
||||
}
|
||||
|
||||
public override TelemetryDataSpinDto Convert(TelemetryDataSpin src, double timezoneOffset)
|
||||
protected override TelemetryDataSpinDto Convert(TelemetryDataSpin src, double timezoneOffset)
|
||||
{
|
||||
var dto = src.Adapt<TelemetryDataSpinDto>();
|
||||
dto.DateTime = src.DateTime.ToRemoteDateTime(timezoneOffset);
|
||||
|
Loading…
Reference in New Issue
Block a user