Смена типов дат для TrajectoryGeoDto

This commit is contained in:
Olga Nemt 2024-03-25 09:34:54 +05:00
parent 488b8ec674
commit b9b8027a53
3 changed files with 6 additions and 6 deletions

View File

@ -46,7 +46,7 @@ namespace AsbCloudApp.Data.Trajectory
/// <summary>
/// Дата загрузки
/// </summary>
public DateTime UpdateDate { get; set; }
public DateTimeOffset UpdateDate { get; set; }
/// <summary>
/// ИД пользователя

View File

@ -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;
}

View File

@ -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