mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-22 22:12:28 -05:00
parent
7712b2902f
commit
63cfa4229a
2 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,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, 1 - 1, 1);
|
||||
var today = new Date();
|
||||
var dstAdjust = today.getTimezoneOffset() - start.getTimezoneOffset();
|
||||
var mSecsSinceStart = today.valueOf() - start.valueOf();
|
||||
|
|
|
@ -399,7 +399,7 @@ Blocks.prototype.blockToXML = function (blockId) {
|
|||
// Encode properties of this block.
|
||||
var tagName = (block.shadow) ? 'shadow' : 'block';
|
||||
var xy = (block.topLevel) ?
|
||||
' x="' + block.x +'" y="' + block.y +'"' :
|
||||
' x="' + block.x + '" y="' + block.y + '"' :
|
||||
'';
|
||||
var xmlString = '';
|
||||
xmlString += '<' + tagName +
|
||||
|
|
Loading…
Reference in a new issue