fixed(share modal): fixed issue with sharemodal introduced with recent change to time handling, #2791

This commit is contained in:
Torkel Ödegaard 2015-09-22 07:32:47 +02:00
parent 63665dccae
commit 0ef8e086a2

View File

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