Commit f8f7543d by Alexander Zobnin Committed by Torkel Ödegaard

Fix Elastic datasource tests - use moment.utc() instead moment() to prevent…

Fix Elastic datasource tests - use moment.utc() instead moment() to prevent timezone-related issues, fixes #5733. (#5746)
parent 6d1dd95a
...@@ -59,8 +59,8 @@ describe('ElasticDatasource', function() { ...@@ -59,8 +59,8 @@ describe('ElasticDatasource', function() {
ctx.ds.query({ ctx.ds.query({
range: { range: {
from: moment([2015, 4, 30, 10]), from: moment.utc([2015, 4, 30, 10]),
to: moment([2015, 5, 1, 10]) to: moment.utc([2015, 5, 1, 10])
}, },
targets: [{ bucketAggs: [], metrics: [], query: 'escape\\:test' }] targets: [{ bucketAggs: [], metrics: [], query: 'escape\\:test' }]
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment