From ffac08856f275a80d72341fce6943399f7035fba Mon Sep 17 00:00:00 2001 From: Sakurai Date: Sun, 9 Feb 2025 11:29:38 +0900 Subject: [PATCH] Fix --- Uriagekun/Controllers/RecordController.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Uriagekun/Controllers/RecordController.cs b/Uriagekun/Controllers/RecordController.cs index bef86e5..fa8fff4 100644 --- a/Uriagekun/Controllers/RecordController.cs +++ b/Uriagekun/Controllers/RecordController.cs @@ -20,7 +20,6 @@ public class RecordController : Controller public async Task Add(AddUriageModel model) { - Console.WriteLine(model.Date); if (!ModelState.IsValid) { return BadRequest(); @@ -41,7 +40,7 @@ public class RecordController : Controller return NotFound(); } - var from = DateTime.Now; + var from = model.Date; int year = from.Year; int month = from.Month; int day = from.Day;