aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-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,
}