Selaa lähdekoodia

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

Torkel Ödegaard 10 vuotta sitten
vanhempi
commit
0ef8e086a2
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      public/app/features/dashboard/shareModalCtrl.js

+ 2 - 2
public/app/features/dashboard/shareModalCtrl.js

@@ -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);