mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 20:54:22 -06:00
Fix Elastic datasource tests - use moment.utc() instead moment() to prevent timezone-related issues, fixes #5733. (#5746)
This commit is contained in:
parent
6d1dd95ab3
commit
f8f7543d4a
@ -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…
Reference in New Issue
Block a user