From 01e5ca081a06c26af699ab6db000d5a934ffa8bd Mon Sep 17 00:00:00 2001 From: Wang Date: Fri, 27 Sep 2024 10:26:00 -0700 Subject: [PATCH] TH-121015: set permit issued date to unspecified format when printing inspection --- Server/SchoolBusAPI/Services/SchoolBusService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Server/SchoolBusAPI/Services/SchoolBusService.cs b/Server/SchoolBusAPI/Services/SchoolBusService.cs index 0d36a004..76537d40 100644 --- a/Server/SchoolBusAPI/Services/SchoolBusService.cs +++ b/Server/SchoolBusAPI/Services/SchoolBusService.cs @@ -847,6 +847,7 @@ public virtual IActionResult SchoolbusesIdNewpermitPutAsync(int id) item.PermitNumber = permit; item.PermitIssueDate = DateTime.UtcNow; + item.PermitIssueDate = DateTime.SpecifyKind(item.PermitIssueDate.GetValueOrDefault(), DateTimeKind.Unspecified); _context.SchoolBuss.Update(item); _context.SaveChanges();