From 122fa0030ab7478bcce3337e04537a5b31621fd9 Mon Sep 17 00:00:00 2001 From: John Carlson Date: Thu, 15 Jan 2015 12:42:24 -0600 Subject: [PATCH] Add one to getUTCMonth() to agree with blog The blog got updated, but the running sample code didn't. This provides a patch to the running sample, I think --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index d63edbb..affdaf6 100644 --- a/app.js +++ b/app.js @@ -12,7 +12,7 @@ d3DemoApp.controller('AppCtrl', function AppCtrl ($scope, $http) { // helper for formatting date var humanReadableDate = function (d) { - return d.getUTCMonth() + '/' + d.getUTCDate(); + return d.getUTCMonth()+1 + '/' + d.getUTCDate(); }; // helper for reformatting the Github API response into a form we can pass to D3 @@ -303,4 +303,4 @@ d3DemoApp.directive('ghVisualization', function () { }); } } -}); \ No newline at end of file +});