From 2868ae49470d229c0dd30ac3133ded30c50d41b2 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 7 Aug 2021 16:36:30 +0530 Subject: [PATCH] EmailAlert: fixed email date time formating issue. --- Apps/FailoverApp/EmailAlert.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Apps/FailoverApp/EmailAlert.cs b/Apps/FailoverApp/EmailAlert.cs index f5434c25..0ab00cae 100644 --- a/Apps/FailoverApp/EmailAlert.cs +++ b/Apps/FailoverApp/EmailAlert.cs @@ -207,7 +207,7 @@ namespace Failover The DNS Failover App was successfully able to perform a health check [" + healthCheck + "] on the address [" + address.ToString() + @"] and found that the address was healthy. -Alert time: " + healthCheckStatus.DateTime.ToLongDateString() + @" +Alert time: " + healthCheckStatus.DateTime.ToString("R") + @" Regards, DNS Failover App @@ -221,7 +221,7 @@ DNS Failover App The DNS Failover App was successfully able to perform a health check [" + healthCheck + "] on the address [" + address.ToString() + @"] and found that the address failed to respond. The failure reason is: " + healthCheckStatus.FailureReason + @" -Alert time: " + healthCheckStatus.DateTime.ToLongDateString() + @" +Alert time: " + healthCheckStatus.DateTime.ToString("R") + @" Regards, DNS Failover App @@ -249,7 +249,7 @@ DNS Failover App The DNS Failover App has failed to perform a health check [" + healthCheck + "] on the address [" + address.ToString() + @"]. The error description is: " + ex.ToString() + @" -Alert time: " + DateTime.UtcNow.ToLongDateString() + @" +Alert time: " + DateTime.UtcNow.ToString("R") + @" Regards, DNS Failover App @@ -278,7 +278,7 @@ DNS Failover App The DNS Failover App was successfully able to perform a health check [" + healthCheck + "] on the domain name [" + domain + @"] and found that the domain name was healthy. DNS record type: " + type.ToString() + @" -Alert time: " + healthCheckStatus.DateTime.ToLongDateString() + @" +Alert time: " + healthCheckStatus.DateTime.ToString("R") + @" Regards, DNS Failover App @@ -293,7 +293,7 @@ The DNS Failover App was successfully able to perform a health check [" + health The failure reason is: " + healthCheckStatus.FailureReason + @" DNS record type: " + type.ToString() + @" -Alert time: " + healthCheckStatus.DateTime.ToLongDateString() + @" +Alert time: " + healthCheckStatus.DateTime.ToString("R") + @" Regards, DNS Failover App @@ -322,7 +322,7 @@ The DNS Failover App has failed to perform a health check [" + healthCheck + "] The error description is: " + ex.ToString() + @" DNS record type: " + type.ToString() + @" -Alert time: " + DateTime.UtcNow.ToLongDateString() + @" +Alert time: " + DateTime.UtcNow.ToString("R") + @" Regards, DNS Failover App