mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
fix end time of Prometheus link
This commit is contained in:
parent
be48caf59f
commit
ebf0bd5fc9
@ -46,7 +46,7 @@ function (angular, _) {
|
||||
|
||||
$scope.linkToPrometheus = function() {
|
||||
var range = Math.ceil(($scope.range.to.valueOf() - $scope.range.from.valueOf()) / 1000);
|
||||
var endTime = $scope.range.to.utc().format('YYYY-MM-DD HH:MM');
|
||||
var endTime = $scope.range.to.utc().format('YYYY-MM-DD HH:mm');
|
||||
var expr = {
|
||||
expr: templateSrv.replace($scope.target.expr, $scope.panel.scopedVars),
|
||||
range_input: range + 's',
|
||||
|
Loading…
Reference in New Issue
Block a user