Skip to content

Commit

Permalink
TH-121015: fix the datetime formate is still utc when adding new owner
Browse files Browse the repository at this point in the history
  • Loading branch information
bcgov-brwang committed Oct 8, 2024
1 parent 9cf298b commit c12e5c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Server/SchoolBusAPI/Services/SchoolBusOwnerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ public virtual IActionResult SchoolbusownersPostAsync(SchoolBusOwner body)
{
AdjustSchoolBusOwner(body);
body.DateCreated = DateTime.UtcNow;
body.DateCreated = DateTime.SpecifyKind(body.DateCreated, DateTimeKind.Unspecified);
_context.SchoolBusOwners.Add(body);
_context.SaveChanges();
return new ObjectResult(body);
Expand Down

0 comments on commit c12e5c2

Please sign in to comment.