Skip to content

Commit

Permalink
Fix rounding issue relative mode timepicker (#346)
Browse files Browse the repository at this point in the history
* Change version to v1.6.25-alpha

* Remove time unit rounding in the relative mode of time picker.
  • Loading branch information
athana committed Aug 7, 2019
1 parent 7560c25 commit afc5038
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/panels/timepicker/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ function (angular, app, _, moment, kbn, $) {
timeUnit = 'YEAR';
break;
}
filterTime.from = 'NOW/' + timeUnit + '-' + timeNumber + timeUnit;
filterTime.to = 'NOW/' + timeUnit + '%2B1' + timeUnit;
filterTime.from = 'NOW-' + timeNumber + timeUnit;
filterTime.to = 'NOW%2B1' + timeUnit;
// Add Date objects representation of from and to, for use with histogram panel
// where it needs Date objects for plotting x-axis on a chart.
filterTime.fromDateObj = moment().subtract(timeShorthand,timeNumber).toDate();
Expand Down
2 changes: 1 addition & 1 deletion src/app/partials/dasheditor.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
ng-options="f for f in ['dark','light']"></select>
</div>
<div class="span2">
<label class="small">Version</label>Banana v1.6.24
<label class="small">Version</label>Banana v1.6.25-alpha
</div>
</div>
</div>
Expand Down

0 comments on commit afc5038

Please sign in to comment.