aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-11-13 12:28:46 -0500
committerDrew DeVault <sir@cmpwn.com>2020-11-13 12:28:46 -0500
commit2611bee1705dcaf541b5efaa3cf61d344cf1bff1 (patch)
tree5d29c757cfff10b2e222d517f2961fa0a4101219 /plugins/base
parent6ecb243620c6114cc5b25ec780aff9040ac49260 (diff)
downloadalps-2611bee1705dcaf541b5efaa3cf61d344cf1bff1.tar.gz
alps-2611bee1705dcaf541b5efaa3cf61d344cf1bff1.zip
Humanize message list dates
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/template.go2
1 files changed, 2 insertions, 0 deletions
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,
}