Skip to content

Commit

Permalink
Fix round option for time scales
Browse files Browse the repository at this point in the history
  • Loading branch information
etimberg committed Jun 8, 2017
1 parent 9b8c24c commit 68464fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scales/scale.time.js
Expand Up @@ -125,7 +125,7 @@ module.exports = function(Chart) {
if (timeOpts.min) {
var minMoment = timeHelpers.parseTime(me, timeOpts.min);
if (timeOpts.round) {
minMoment.round(timeOpts.round);
minMoment.startOf(timeOpts.round);
}
minTimestamp = minMoment.valueOf();
}
Expand Down

0 comments on commit 68464fd

Please sign in to comment.