Skip to content

Commit

Permalink
Fix copy-paste naming error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Bornstein committed Apr 26, 2012
1 parent 14c1b43 commit 432315e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/index.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ function startLogRotation() {


function dateString(when) { function dateString(when) {
when = new Date(when); when = new Date(when);
var year = yesterday.getUTCFullYear(); var year = when.getUTCFullYear();
var month = yesterday.getUTCMonth() + 1; // +1 because it's zero-based var month = when.getUTCMonth() + 1; // +1 because it's zero-based
var day = yesterday.getUTCDate(); var day = when.getUTCDate();


return "" + year + "-" + zeroPad(month) + "-" + zeroPad(day); return "" + year + "-" + zeroPad(month) + "-" + zeroPad(day);
} }
Expand Down

0 comments on commit 432315e

Please sign in to comment.