X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph.js;h=bba10284c4772380c2273287c3191b89ef038de9;hb=8c0599e30c8cfbda74f1f70e8b07e58bc19548ae;hp=7dd68a9c085e337880f59d95c2629b1ab09c69e9;hpb=f1ec8cf5aedd62613b954803cb48aaa0a065dc32;p=dygraphs.git diff --git a/dygraph.js b/dygraph.js index 7dd68a9..bba1028 100644 --- a/dygraph.js +++ b/dygraph.js @@ -203,7 +203,7 @@ Dygraph.SHORT_MONTH_NAMES_ = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', ' /** * Convert a JS date to a string appropriate to display on an axis that * is displaying values at the stated granularity. This respects the - * labelsDateUTC option. + * labelsUTC option. * @param {Date} date The date to format * @param {number} granularity One of the Dygraph granularity constants * @param {Dygraph} opts An options view @@ -211,7 +211,7 @@ Dygraph.SHORT_MONTH_NAMES_ = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', ' * @private */ Dygraph.dateAxisLabelFormatter = function(date, granularity, opts) { - var utc = opts('labelsDateUTC'); + var utc = opts('labelsUTC'); var accessors = utc ? Dygraph.DateAccessorsUTC : Dygraph.DateAccessorsLocal; var year = accessors.getFullYear(date), @@ -241,13 +241,13 @@ Dygraph.dateAxisFormatter = Dygraph.dateAxisLabelFormatter; /** * Return a string version of a JS date for a value label. This respects the - * labelsDateUTC option. + * labelsUTC option. * @param {Date} date The date to be formatted * @param {Dygraph} opts An options view * @private */ Dygraph.dateValueFormatter = function(d, opts) { - return Dygraph.dateString_(d, opts('labelsDateUTC')); + return Dygraph.dateString_(d, opts('labelsUTC')); }; /**