diff options
Diffstat (limited to 'pkg/gui/presentation')
-rw-r--r-- | pkg/gui/presentation/commits.go | 3 | ||||
-rw-r--r-- | pkg/gui/presentation/reflog_commits.go | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/pkg/gui/presentation/commits.go b/pkg/gui/presentation/commits.go index dedf4a01b..b54f928ac 100644 --- a/pkg/gui/presentation/commits.go +++ b/pkg/gui/presentation/commits.go @@ -63,8 +63,7 @@ func getFullDescriptionDisplayStringsForCommit(c *commands.Commit, cherryPickedC } tagString := "" - truncatedDate := utils.TruncateWithEllipsis(c.Date, 15) - secondColumnString := blue.Sprint(truncatedDate) + secondColumnString := blue.Sprint(utils.UnixToDate(c.UnixTimestamp)) if c.Action != "" { secondColumnString = cyan.Sprint(c.Action) } else if c.ExtraInfo != "" { diff --git a/pkg/gui/presentation/reflog_commits.go b/pkg/gui/presentation/reflog_commits.go index a3e39a70d..e57560b76 100644 --- a/pkg/gui/presentation/reflog_commits.go +++ b/pkg/gui/presentation/reflog_commits.go @@ -27,7 +27,11 @@ func GetReflogCommitListDisplayStrings(commits []*commands.Commit, fullDescripti func getFullDescriptionDisplayStringsForReflogCommit(c *commands.Commit) []string { defaultColor := color.New(theme.DefaultTextColor) - return []string{utils.ColoredString(c.ShortSha(), color.FgBlue), utils.ColoredString(c.Date, color.FgMagenta), defaultColor.Sprint(c.Name)} + return []string{ + utils.ColoredString(c.ShortSha(), color.FgBlue), + utils.ColoredString(utils.UnixToDate(c.UnixTimestamp), color.FgMagenta), + defaultColor.Sprint(c.Name), + } } func getDisplayStringsForReflogCommit(c *commands.Commit) []string { |