Return DateTimeOffset
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-06-13 19:39:46 +02:00
parent 7aa8599535
commit e29c5b2458

View File

@@ -7,7 +7,7 @@ public class GetServerInfo
public record Response(
string FullVersion,
string CommitId,
DateTime CommitDate,
DateTimeOffset CommitDate,
string Environment);
public static RouteHandlerBuilder MapEndpoint(IEndpointRouteBuilder builder)
@@ -23,7 +23,7 @@ public class GetServerInfo
return TypedResults.Ok(new Response(
ThisAssembly.AssemblyInformationalVersion,
ThisAssembly.GitCommitId,
ThisAssembly.GitCommitDate,
new DateTimeOffset(ThisAssembly.GitCommitDate, TimeSpan.Zero),
environment.EnvironmentName));
}
}