Skip to content

Commit

Permalink
Fix saving Stratigraphy Date (#1055)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr authored Feb 26, 2024
2 parents d3c73e8 + 9cf7900 commit 859cf3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/Controllers/StratigraphyController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ public override async Task<ActionResult<Stratigraphy>> EditAsync(Stratigraphy en
return Problem("The borehole is locked by another user or you are missing permissions.");
}

entity.Date = entity.Date != null ? DateTime.SpecifyKind(entity.Date.Value, DateTimeKind.Utc) : null;
var editResult = await base.EditAsync(entity).ConfigureAwait(false);
if (editResult.Result is not OkObjectResult) return editResult;

Expand Down

0 comments on commit 859cf3b

Please sign in to comment.