+Dygraph.dateAxisLabelFormatter = function(date, granularity, opts) {
+ var utc = opts('labelsDateUTC');
+ var year, month, day, hours, mins, secs, millis;
+ if (utc) {
+ year = date.getUTCFullYear();
+ month = date.getUTCMonth();
+ day = date.getUTCDate();
+ hours = date.getUTCHours();
+ mins = date.getUTCMinutes();
+ secs = date.getUTCSeconds();
+ millis = date.getUTCMilliseconds();
+ } else {
+ year = date.getFullYear();
+ month = date.getMonth();
+ day = date.getDate();
+ hours = date.getHours();
+ mins = date.getMinutes();
+ secs = date.getSeconds();
+ millis = date.getMilliseconds();
+ }