From a587b2f3a1f2b8263b886633262a101cccf87f4e Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Wed, 6 May 2015 23:46:33 -0400 Subject: [PATCH] durations eval to durations --- lib/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }