Skip to content

Commit

Permalink
Merge pull request #29 from SkynetLabs/pj/update-timestamps
Browse files Browse the repository at this point in the history
[MINOR] Update time format in email
  • Loading branch information
kwypchlo authored Apr 21, 2022
2 parents 50782cc + 063f84b commit 4e77172
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion database/abuseemail.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down
6 changes: 3 additions & 3 deletions database/abuseemail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 4e77172

Please sign in to comment.