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