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:
parent
3d79cdd95e
commit
d5e8ab7561
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue