Permalink
Browse files

Fix copy-paste naming error.

  • Loading branch information...
Dan Bornstein
Dan Bornstein committed Apr 26, 2012
1 parent 14c1b43 commit 432315e81ed573f014c989629f849160dab8d00d
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/index.js
View
@@ -290,9 +290,9 @@ function startLogRotation() {
function dateString(when) {
when = new Date(when);
- var year = yesterday.getUTCFullYear();
- var month = yesterday.getUTCMonth() + 1; // +1 because it's zero-based
- var day = yesterday.getUTCDate();
+ var year = when.getUTCFullYear();
+ var month = when.getUTCMonth() + 1; // +1 because it's zero-based
+ var day = when.getUTCDate();
return "" + year + "-" + zeroPad(month) + "-" + zeroPad(day);
}

0 comments on commit 432315e

Please sign in to comment.