diff --git a/src/Vegasco.Server.Api/Info/GetServerInfo.cs b/src/Vegasco.Server.Api/Info/GetServerInfo.cs index 730b83b..2e82096 100644 --- a/src/Vegasco.Server.Api/Info/GetServerInfo.cs +++ b/src/Vegasco.Server.Api/Info/GetServerInfo.cs @@ -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)); } } \ No newline at end of file