From 68464fdbb148650b46f243929bf8df93b9ca1531 Mon Sep 17 00:00:00 2001 From: etimberg Date: Wed, 7 Jun 2017 20:49:22 -0400 Subject: [PATCH] Fix round option for time scales --- src/scales/scale.time.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scales/scale.time.js b/src/scales/scale.time.js index f9f80386e89..643e9bd5756 100644 --- a/src/scales/scale.time.js +++ b/src/scales/scale.time.js @@ -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(); }