We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8195a01 commit 18327c3Copy full SHA for 18327c3
cli/helpers.go
@@ -14,7 +14,8 @@ func timeStringWithAgo(t time.Time) string {
14
out := t.Local().Format("2006-01-02 15:04")
15
16
if ago := time.Now().Sub(t); ago < 24*time.Hour {
17
- if str := roundDurationRE.FindString(ago.String()); str != "" {
+ agoStr := ago.Round(time.Second).String()
18
+ if str := roundDurationRE.FindString(agoStr); str != "" {
19
out = fmt.Sprintf("%s (~ %s ago)", out, str)
20
}
21
0 commit comments