From f308d553ede6a844ac3ce82f86a1fce3c823a622 Mon Sep 17 00:00:00 2001 From: redistay <165581775+redistay@users.noreply.github.com> Date: Wed, 3 Apr 2024 01:08:24 +0800 Subject: [PATCH] use the built-in const (#5267) --- stale_repositories_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stale_repositories_test.go b/stale_repositories_test.go index a83ca7d7..20b013ff 100644 --- a/stale_repositories_test.go +++ b/stale_repositories_test.go @@ -39,7 +39,7 @@ var awesomeGoGETISSUES = "http://api.github.com/repos/avelino/awesome-go/issues" // time.Hour * ... or change type of variable var numberOfYears time.Duration = 1 var timeNow = time.Now() -var issueTitle = fmt.Sprintf("Investigate repositories with more than 1 year without update - %s", timeNow.Format("2006-01-02")) +var issueTitle = fmt.Sprintf("Investigate repositories with more than 1 year without update - %s", timeNow.Format(time.DateOnly)) const deadLinkMessage = " this repository might no longer exist! (status code >= 400 returned)" const movedPermanently = " status code 301 received"