From c790a0eae203bf52d2778148c5fe0e9472e794a5 Mon Sep 17 00:00:00 2001 From: PJ Date: Thu, 21 Apr 2022 10:43:01 +0200 Subject: [PATCH] Update time format --- database/abuseemail.go | 2 +- database/abuseemail_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/database/abuseemail.go b/database/abuseemail.go index 9fa8564..ef98e43 100644 --- a/database/abuseemail.go +++ b/database/abuseemail.go @@ -113,7 +113,7 @@ Please verify the link is not corrupted as we need it in order to prevent access sb.WriteString("Hello,\n\n") if len(blocked) > 0 { - sb.WriteString(fmt.Sprintf("the following links were identified and blocked on all of our servers as of %v\n\n", a.BlockedAt.Format(time.RFC3339))) + sb.WriteString(fmt.Sprintf("the following links were identified and blocked on all of our servers as of %v\n\n", a.BlockedAt.Format(time.RFC1123))) for _, skylink := range blocked { sb.WriteString(fmt.Sprintf("- %s\n", skylink)) } diff --git a/database/abuseemail_test.go b/database/abuseemail_test.go index a6f8754..4b7369e 100644 --- a/database/abuseemail_test.go +++ b/database/abuseemail_test.go @@ -112,7 +112,7 @@ Therefore we are not to be held accountable for any potential abusive content it We will, however, do everything in our power to block access from said content when it gets reported. Thank you for your report. -`, blockedAt.Format(time.RFC3339)) +`, blockedAt.Format(time.RFC1123)) // assert it's identical actual := email.String() @@ -184,7 +184,7 @@ Therefore we are not to be held accountable for any potential abusive content it We will, however, do everything in our power to block access from said content when it gets reported. Thank you for your report. -`, blockedAt.Format(time.RFC3339)) +`, blockedAt.Format(time.RFC1123)) // assert it's identical actual = email.response() @@ -212,7 +212,7 @@ Therefore we are not to be held accountable for any potential abusive content it We will, however, do everything in our power to block access from said content when it gets reported. Thank you for your report. -`, blockedAt.Format(time.RFC3339)) +`, blockedAt.Format(time.RFC1123)) // assert it's identical actual = email.response()