durations eval to durations

master
Jordan Orelli 10 years ago
parent dfc25d24a5
commit a587b2f3a1

@ -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
}

Loading…
Cancel
Save