aboutsummaryrefslogtreecommitdiffstats
path: root/bug/snapshot.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-19 18:10:45 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-19 18:10:45 +0200
commit0a7814f33a44a57924ac4c6dfeca20cf741dc1f3 (patch)
tree7e0afa88cf16dbaaab14e97dca8a6365a0300b67 /bug/snapshot.go
parentd7313068fbb95829175fe108352b7b1e99e6fe9d (diff)
downloadgit-bug-0a7814f33a44a57924ac4c6dfeca20cf741dc1f3.tar.gz
humanize time
Diffstat (limited to 'bug/snapshot.go')
-rw-r--r--bug/snapshot.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/bug/snapshot.go b/bug/snapshot.go
index 75d3a028..14ffd629 100644
--- a/bug/snapshot.go
+++ b/bug/snapshot.go
@@ -2,6 +2,7 @@ package bug
import (
"fmt"
+ "github.com/dustin/go-humanize"
"time"
)
@@ -28,10 +29,10 @@ func (snap Snapshot) HumanId() string {
}
func (snap Snapshot) Summary() string {
- return fmt.Sprintf("C:%d L:%d %s",
+ return fmt.Sprintf("C:%d L:%d %s",
len(snap.Comments)-1,
len(snap.Labels),
- snap.LastEdit().Format(time.RFC822),
+ humanize.Time(snap.LastEdit()),
)
}