forked from ddrilling/AsbCloudServer
Смена типов дат для TrajectoryGeoDto
This commit is contained in:
parent
488b8ec674
commit
b9b8027a53
@ -46,7 +46,7 @@ namespace AsbCloudApp.Data.Trajectory
|
||||
/// <summary>
|
||||
/// Дата загрузки
|
||||
/// </summary>
|
||||
public DateTime UpdateDate { get; set; }
|
||||
public DateTimeOffset UpdateDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ИД пользователя
|
||||
|
@ -108,7 +108,7 @@ namespace AsbCloudInfrastructure.Repository
|
||||
private static Tdto Convert(TEntity entity, double offsetHours)
|
||||
{
|
||||
var dto = entity.Adapt<Tdto>();
|
||||
dto.UpdateDate = entity.UpdateDate.ToRemoteDateTime(offsetHours);
|
||||
dto.UpdateDate = entity.UpdateDate.ToOffset(TimeSpan.FromHours(offsetHours));
|
||||
return dto;
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ namespace AsbCloudWebApi.Tests.Services.Trajectory
|
||||
IdUser = 1,
|
||||
IdWell = 4,
|
||||
Radius = 3,
|
||||
UpdateDate = DateTime.Now,
|
||||
UpdateDate = DateTimeOffset.Now,
|
||||
VerticalDepth = 100,
|
||||
WellboreDepth = 100,
|
||||
ZenithAngle = 10
|
||||
@ -47,7 +47,7 @@ namespace AsbCloudWebApi.Tests.Services.Trajectory
|
||||
IdUser = 1,
|
||||
IdWell = 4,
|
||||
Radius = 3,
|
||||
UpdateDate = DateTime.Now,
|
||||
UpdateDate = DateTimeOffset.Now,
|
||||
VerticalDepth = 100,
|
||||
WellboreDepth = 100,
|
||||
ZenithAngle = 10
|
||||
@ -62,7 +62,7 @@ namespace AsbCloudWebApi.Tests.Services.Trajectory
|
||||
Comment = "комментарий",
|
||||
IdUser = 1,
|
||||
IdWell = 4,
|
||||
UpdateDate = DateTime.Now,
|
||||
UpdateDate = DateTimeOffset.Now,
|
||||
VerticalDepth = 100,
|
||||
WellboreDepth = 100,
|
||||
ZenithAngle = 10
|
||||
@ -74,7 +74,7 @@ namespace AsbCloudWebApi.Tests.Services.Trajectory
|
||||
Comment = "комментарий",
|
||||
IdUser = 1,
|
||||
IdWell = 4,
|
||||
UpdateDate = DateTime.Now,
|
||||
UpdateDate = DateTimeOffset.Now,
|
||||
VerticalDepth = 100,
|
||||
WellboreDepth = 100,
|
||||
ZenithAngle = 10
|
||||
|
Loading…
Reference in New Issue
Block a user