From 58305ddfb21f6ab2cf89ea4d3bb2823b27c95ad9 Mon Sep 17 00:00:00 2001 From: awcodify Date: Tue, 12 Mar 2024 20:38:51 +0700 Subject: [PATCH] Add last update section --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 996b2a6..deefb32 100644 --- a/main.go +++ b/main.go @@ -10,6 +10,7 @@ import ( "sort" "strings" "sync" + "time" "github.com/google/go-github/v38/github" "golang.org/x/oauth2" @@ -229,6 +230,7 @@ func generateMarkdown(stats map[string]int, totalSize int, mostProductiveDay str lines = append(lines, "```") lines = append(lines, "\n📅 Most Productive Day: "+mostProductiveDay) lines = append(lines, "\n⌚️ Most Productive Hour: "+mostProductiveHour) + lines = append(lines, "\n _Last update: "+fmt.Sprint(time.Now().Format("2006-01-02 15:04:05")+"_")) lines = append(lines, "") return strings.Join(lines, "\n")