diff --git a/src/blocks/scratch3_sensing.js b/src/blocks/scratch3_sensing.js index 44e5a9b3c..c1ac19c29 100644 --- a/src/blocks/scratch3_sensing.js +++ b/src/blocks/scratch3_sensing.js @@ -48,7 +48,7 @@ Scratch3SensingBlocks.prototype.current = function (args) { case 'year': return date.getFullYear(); case 'month': return date.getMonth() + 1; // getMonth is zero-based case 'date': return date.getDate(); - case 'dayofweek': return date.getDay(); + case 'dayofweek': return date.getDay() + 1; // getDay is zero-based, Sun=0 case 'hour': return date.getHours(); case 'minute': return date.getMinutes(); case 'second': return date.getSeconds();