From 28a0831e8dc2ba664188ad251db7eef8a15f7c92 Mon Sep 17 00:00:00 2001 From: Tim Mickel Date: Wed, 26 Oct 2016 10:26:03 -0400 Subject: [PATCH] Fix 1-1 in daysSince2000 --- src/blocks/scratch3_sensing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blocks/scratch3_sensing.js b/src/blocks/scratch3_sensing.js index c56861d60..c940c5068 100644 --- a/src/blocks/scratch3_sensing.js +++ b/src/blocks/scratch3_sensing.js @@ -117,7 +117,7 @@ Scratch3SensingBlocks.prototype.getKeyPressed = function (args, util) { Scratch3SensingBlocks.prototype.daysSince2000 = function () { var msPerDay = 24 * 60 * 60 * 1000; - var start = new Date(2000, 1 - 1, 1); + var start = new Date(2000, 0, 1); // Months are 0-indexed. var today = new Date(); var dstAdjust = today.getTimezoneOffset() - start.getTimezoneOffset(); var mSecsSinceStart = today.valueOf() - start.valueOf();