diff --git a/README.md b/README.md index 8400f7c22..d1ff9a2ea 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,10 @@ Since v5.5.0 of the JavaScript adapter the following locations (relative to the +### **WORK IN PROGRESS** + +* (klein0r) Fixed inpaired round brackets of getMinutes (Blockly) + ### 7.5.0 (2023-12-15) * (klein0r) Blockly: Day of week as number always returns 1 (monday) to 7 (sunday) diff --git a/src/public/google-blockly/own/blocks_convert.js b/src/public/google-blockly/own/blocks_convert.js index e77569774..198abed74 100644 --- a/src/public/google-blockly/own/blocks_convert.js +++ b/src/public/google-blockly/own/blocks_convert.js @@ -267,7 +267,7 @@ Blockly.JavaScript.convert_from_date = function (block) { } else if (option === 'sid') { code = `(() => { const v = getDateObject(${value}); return v.getHours() * 3600 + v.getMinutes() * 60 + v.getSeconds(); })()`; } else if (option === 'm') { - code = `getDateObject(${value}).getMinutes())`; + code = `getDateObject(${value}).getMinutes()`; } else if (option === 'mid') { code = `(() => { const v = getDateObject(${value}); return v.getHours() * 60 + v.getMinutes(); })()`; } else if (option === 'h') {