diff --git a/lib/node.go b/lib/node.go index 52bc2f9..55748d8 100644 --- a/lib/node.go +++ b/lib/node.go @@ -537,5 +537,5 @@ func (d *durationNode) pretty(w io.Writer, prefix string) error { } func (d *durationNode) eval(ctx *context) (interface{}, error) { - return *d, nil + return time.Duration(*d), nil }