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;