Fix Elastic datasource tests - use moment.utc() instead moment() to prevent timezone-related issues, fixes #5733. (#5746)

pull/5758/head
Alexander Zobnin 9 years ago committed by Torkel Ödegaard
parent 6d1dd95ab3
commit f8f7543d4a
  1. 4
      public/app/plugins/datasource/elasticsearch/specs/datasource_specs.ts

@ -59,8 +59,8 @@ describe('ElasticDatasource', function() {
ctx.ds.query({
range: {
from: moment([2015, 4, 30, 10]),
to: moment([2015, 5, 1, 10])
from: moment.utc([2015, 4, 30, 10]),
to: moment.utc([2015, 5, 1, 10])
},
targets: [{ bucketAggs: [], metrics: [], query: 'escape\\:test' }]
});

Loading…
Cancel
Save