Skip to content

Commit

Permalink
Fixed month off-by-one error
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelSutherland committed Jul 12, 2012
1 parent 4c3c343 commit 110e18b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion jquery.githubRepoWidget.js
Expand Up @@ -18,7 +18,7 @@ $(function(){
var repo = results.data;

var date = new Date(repo.pushed_at);
var pushed_at = date.getMonth() + '-' + date.getDate() + '-' + date.getFullYear();
var pushed_at = (date.getMonth()+1) + '-' + date.getDate() + '-' + date.getFullYear();

var $widget = $(' \
<div class="github-box repo"> \
Expand Down
2 changes: 1 addition & 1 deletion jquery.githubRepoWidget.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 110e18b

Please sign in to comment.