From df49ae10fd8b381085fd0bb7e506efd8890c7036 Mon Sep 17 00:00:00 2001 From: jvyden Date: Sun, 21 Nov 2021 19:41:42 -0500 Subject: [PATCH] Add proper timestamp to authentication page --- ProjectLighthouse/Pages/ExternalAuth/AuthenticationPage.cshtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ProjectLighthouse/Pages/ExternalAuth/AuthenticationPage.cshtml b/ProjectLighthouse/Pages/ExternalAuth/AuthenticationPage.cshtml index 58b9d20a..189e664a 100644 --- a/ProjectLighthouse/Pages/ExternalAuth/AuthenticationPage.cshtml +++ b/ProjectLighthouse/Pages/ExternalAuth/AuthenticationPage.cshtml @@ -18,8 +18,9 @@ else @foreach (AuthenticationAttempt authAttempt in Model.AuthenticationAttempts) { + DateTimeOffset timestamp = DateTimeOffset.FromUnixTimeSeconds(authAttempt.Timestamp);
-

A @authAttempt.Platform authentication request was logged at @authAttempt.Timestamp from the IP address @authAttempt.IPAddress.

+

A @authAttempt.Platform authentication request was logged at @timestamp.ToString("MM/dd/yyyy @ h:mm tt") UTC from the IP address @authAttempt.IPAddress.