Skip to content

Commit f8f7543

Browse files
alexanderzobnintorkelo
authored andcommitted
Fix Elastic datasource tests - use moment.utc() instead moment() to prevent timezone-related issues, fixes grafana#5733. (grafana#5746)
1 parent 6d1dd95 commit f8f7543

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/app/plugins/datasource/elasticsearch/specs/datasource_specs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ describe('ElasticDatasource', function() {
5959

6060
ctx.ds.query({
6161
range: {
62-
from: moment([2015, 4, 30, 10]),
63-
to: moment([2015, 5, 1, 10])
62+
from: moment.utc([2015, 4, 30, 10]),
63+
to: moment.utc([2015, 5, 1, 10])
6464
},
6565
targets: [{ bucketAggs: [], metrics: [], query: 'escape\\:test' }]
6666
});

0 commit comments

Comments
 (0)