]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Use parser options in getPixelForValue for time scale 3131/head
authorLighnat0r <Lighnat0r@users.noreply.github.com>
Wed, 10 Aug 2016 17:14:02 +0000 (19:14 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Aug 2016 17:14:02 +0000 (19:14 +0200)
src/scales/scale.time.js

index 4e668cb67f2cdbf85427761ad1257c0929d9c169..c618f73fce2e41b449f7f453b85dd1624bbdb4b9 100755 (executable)
@@ -338,7 +338,7 @@ module.exports = function(Chart) {
                        var me = this;
                        if (!value || !value.isValid) {
                                // not already a moment object
-                               value = moment(me.getRightValue(value));
+                               value = me.parseTime(me.getRightValue(value));
                        }
                        var labelMoment = value && value.isValid && value.isValid() ? value : me.getLabelMoment(datasetIndex, index);