From 2611bee1705dcaf541b5efaa3cf61d344cf1bff1 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 13 Nov 2020 12:28:46 -0500 Subject: Humanize message list dates --- plugins/base/template.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins') diff --git a/plugins/base/template.go b/plugins/base/template.go index 7d85db6..7d6e126 100644 --- a/plugins/base/template.go +++ b/plugins/base/template.go @@ -6,6 +6,7 @@ import ( "strings" "time" + "github.com/dustin/go-humanize" "github.com/emersion/go-imap" ) @@ -61,4 +62,5 @@ var templateFuncs = template.FuncMap{ } return t.Format(inputTimeLayout) }, + "humantime": humanize.Time, } -- cgit v1.2.3