1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-07 06:25:23 +02:00

github commit readable date formatting

This commit is contained in:
Harvey Kandola 2016-06-01 19:18:48 +01:00
parent 3d79cdd95e
commit d5e8ab7561

View file

@ -249,7 +249,8 @@ func (*GithubT) getCommits(client *gogithub.Client, config githubConfig) ([]gith
var a, d, l, m, u string
if v.Commit != nil {
if v.Commit.Committer.Date != nil {
d = fmt.Sprintf("%v", *v.Commit.Committer.Date)
// d = fmt.Sprintf("%v", *v.Commit.Committer.Date)
d = v.Commit.Committer.Date.Format("January 2 2006, 15:04 MST")
}
if v.Commit.Message != nil {
m = *v.Commit.Message