mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Fix 1-1 in daysSince2000
This commit is contained in:
parent
5103cfb853
commit
28a0831e8d
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue