Skip to content

Commit

Permalink
Fixed inpaired round brackets of getMinutes (Blockly) - fixes #1463
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r committed Dec 17, 2023
1 parent be16ca3 commit bbcc5d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ Since v5.5.0 of the JavaScript adapter the following locations (relative to the
<!--
### **WORK IN PROGRESS**
-->
### **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)
Expand Down
2 changes: 1 addition & 1 deletion src/public/google-blockly/own/blocks_convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit bbcc5d6

Please sign in to comment.