From f67ea24260fba8050907403cfcb454fcb0fe7378 Mon Sep 17 00:00:00 2001 From: mfnefd Date: Mon, 9 Dec 2024 00:00:17 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20=D1=82=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20?= =?UTF-8?q?=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B0=D0=B5=D0=BC?= =?UTF-8?q?=D0=B0=D1=8F=20=D0=B4=D0=B0=D1=82=D0=B0=20=D0=B1=D1=83=D0=B4?= =?UTF-8?q?=D0=B5=D1=82=20=D0=B2=D1=8B=D0=B3=D0=BB=D1=8F=D0=B4=D0=B5=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BB=D1=83=D1=87=D1=88=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/Contracts/Mappers/ChangeRecordMapper.cs | 6 +++--- back/Contracts/Mappers/SpendingPlanMapper.cs | 4 ++-- back/Contracts/ViewModels/ChangeRecordViewModel.cs | 2 +- back/Contracts/ViewModels/SpendingPlanViewModel.cs | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/back/Contracts/Mappers/ChangeRecordMapper.cs b/back/Contracts/Mappers/ChangeRecordMapper.cs index 606344d..3ea50c1 100644 --- a/back/Contracts/Mappers/ChangeRecordMapper.cs +++ b/back/Contracts/Mappers/ChangeRecordMapper.cs @@ -8,8 +8,8 @@ public static class ChangeRecordMapper public static ChangeRecordViewModel ToView(this ChangeRecordDto dto) => new() { - Id = dto.Id, - Sum = dto.Sum, - ChangedAt = dto.ChangedAt + Id = dto.Id, + Sum = dto.Sum, + ChangedAt = dto.ChangedAt.ToString("dd.MM.yyyy"), }; } \ No newline at end of file diff --git a/back/Contracts/Mappers/SpendingPlanMapper.cs b/back/Contracts/Mappers/SpendingPlanMapper.cs index 84504b9..1a2674e 100644 --- a/back/Contracts/Mappers/SpendingPlanMapper.cs +++ b/back/Contracts/Mappers/SpendingPlanMapper.cs @@ -9,8 +9,8 @@ public static class SpendingPlanMapper => new() { Id = dto.Id, - StartAt = dto.StartAt, - EndAt = dto.EndAt, + StartAt = dto.StartAt.ToString("dd.MM.yyyy"), + EndAt = dto.EndAt.ToString("dd.MM.yyyy"), Sum = dto.Sum }; } \ No newline at end of file diff --git a/back/Contracts/ViewModels/ChangeRecordViewModel.cs b/back/Contracts/ViewModels/ChangeRecordViewModel.cs index 3a75eb3..ab007c2 100644 --- a/back/Contracts/ViewModels/ChangeRecordViewModel.cs +++ b/back/Contracts/ViewModels/ChangeRecordViewModel.cs @@ -4,5 +4,5 @@ public class ChangeRecordViewModel { public Guid Id { get; set; } public decimal Sum { get; set; } - public DateTime ChangedAt { get; set; } + public string ChangedAt { get; set; } = null!; } \ No newline at end of file diff --git a/back/Contracts/ViewModels/SpendingPlanViewModel.cs b/back/Contracts/ViewModels/SpendingPlanViewModel.cs index 285cdd8..a75357e 100644 --- a/back/Contracts/ViewModels/SpendingPlanViewModel.cs +++ b/back/Contracts/ViewModels/SpendingPlanViewModel.cs @@ -3,7 +3,7 @@ namespace Contracts.ViewModels; public class SpendingPlanViewModel { public Guid Id { get; set; } - public DateTime StartAt { get; set; } - public DateTime EndAt { get; set; } + public string StartAt { get; set; } = null!; + public string EndAt { get; set; } = null!; public decimal Sum { get; set; } } \ No newline at end of file