From fcafbcfdacaaad80829baf9a1fc11a74d9efe4ff Mon Sep 17 00:00:00 2001 From: Zakharov_Rostislav Date: Mon, 13 May 2024 15:58:08 +0400 Subject: [PATCH] fix DateTime mistake --- CarShowroom/CarShowroomBusinessLogic/BusinessLogic/SaleLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CarShowroom/CarShowroomBusinessLogic/BusinessLogic/SaleLogic.cs b/CarShowroom/CarShowroomBusinessLogic/BusinessLogic/SaleLogic.cs index e42888d..9518419 100644 --- a/CarShowroom/CarShowroomBusinessLogic/BusinessLogic/SaleLogic.cs +++ b/CarShowroom/CarShowroomBusinessLogic/BusinessLogic/SaleLogic.cs @@ -47,7 +47,7 @@ namespace CarShowroomBusinessLogic.BusinessLogic public bool Create(SaleDto model) { CheckModel(model); - model.SaleTime = DateTime.Now; + model.SaleTime = DateTime.UtcNow; if (_saleStorage.Insert(model) == null) { return false;