Set timestamp for date functions
@@ -916,6 +916,7 @@ func dateWrapper(ev *evaluator, args Expressions, f func(time.Time) model.Sample
&sample{
Metric: metric.Metric{},
Value: model.SampleValue(ev.Timestamp.Unix()),
+ Timestamp: ev.Timestamp,
},
}
} else {
