Share link should always have absolute time range, Closes #2060

This commit is contained in:
Torkel Ödegaard
2015-05-28 09:35:47 +02:00
parent 96bd66e811
commit aeb8bc8755
2 changed files with 9 additions and 23 deletions

View File

@@ -43,9 +43,9 @@ function (angular, _, require, config) {
var params = angular.copy($location.search());
var range = timeSrv.timeRangeForUrl();
params.from = range.from;
params.to = range.to;
var range = timeSrv.timeRange();
params.from = range.from.getTime();
params.to = range.to.getTime();
if ($scope.options.includeTemplateVars) {
templateSrv.fillVariableValuesForUrl(params);