diff options
Diffstat (limited to 'termui')
-rw-r--r-- | termui/bug_table.go | 3 | ||||
-rw-r--r-- | termui/show_bug.go | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/termui/bug_table.go b/termui/bug_table.go index 2913ac80..e57a2b15 100644 --- a/termui/bug_table.go +++ b/termui/bug_table.go @@ -4,7 +4,6 @@ import ( "bytes" "fmt" "strings" - "time" "github.com/MichaelMure/go-term-text" "github.com/awesome-gocui/gocui" @@ -315,7 +314,7 @@ func (bt *bugTable) render(v *gocui.View, maxX int) { authorDisplayName = excerpt.LegacyAuthor.DisplayName() } - lastEditTime := time.Unix(excerpt.EditUnixTime, 0) + lastEditTime := excerpt.EditTime() id := text.LeftPadMaxLine(excerpt.Id.Human(), columnWidths["id"], 1) status := text.LeftPadMaxLine(excerpt.Status.String(), columnWidths["status"], 1) diff --git a/termui/show_bug.go b/termui/show_bug.go index e483117a..a5da519f 100644 --- a/termui/show_bug.go +++ b/termui/show_bug.go @@ -219,7 +219,7 @@ func (sb *showBug) renderMain(g *gocui.Gui, mainView *gocui.View) error { colors.Bold(snap.Title), colors.Yellow(snap.Status), colors.Magenta(snap.Author.DisplayName()), - snap.CreatedAt.Format(timeLayout), + snap.CreateTime.Format(timeLayout), edited, ) bugHeader, lines := text.Wrap(bugHeader, maxX) |