Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Lol. month - 1. I guess I've been using the --today option.

  • Loading branch information...
commit d194f7d88dda2e4165c4a064fa45ac6e498cd55b 1 parent 9a5a653
@ceejbot authored
Showing with 3 additions and 2 deletions.
  1. +1 −0  .gitignore
  2. +2 −2 bin/cycleTracker.js
View
1  .gitignore
@@ -0,0 +1 @@
+.DS_Store
View
4 bin/cycleTracker.js
@@ -23,7 +23,7 @@ var HISTORY_FILE = '/Users/ceej/.cycletracker.json';
function readHistory(callback)
{
- if (path.existsSync(HISTORY_FILE))
+ if (fs.existsSync(HISTORY_FILE))
{
fs.readFile(HISTORY_FILE, 'utf8', function(err, data)
{
@@ -117,7 +117,7 @@ readHistory(function(err, h)
var matches = pattern.exec(argv.date);
if (matches)
{
- var d = new Date(matches[1], matches[2], matches[3]);
+ var d = new Date(matches[1], matches[2] - 1, matches[3]);
h.push(d);
dataChanged = true;
}
Please sign in to comment.
Something went wrong with that request. Please try again.