Set timestamp for date functions (#3070)
This commit is contained in:
parent
3101606756
commit
2354c2544b
|
@ -914,8 +914,9 @@ func dateWrapper(ev *evaluator, args Expressions, f func(time.Time) model.Sample
|
||||||
if len(args) == 0 {
|
if len(args) == 0 {
|
||||||
v = vector{
|
v = vector{
|
||||||
&sample{
|
&sample{
|
||||||
Metric: metric.Metric{},
|
Metric: metric.Metric{},
|
||||||
Value: model.SampleValue(ev.Timestamp.Unix()),
|
Value: model.SampleValue(ev.Timestamp.Unix()),
|
||||||
|
Timestamp: ev.Timestamp,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue