ioBroker.javascript icon indicating copy to clipboard operation
ioBroker.javascript copied to clipboard

[Bug]: Konvertierungsblock "nach Datum/Zeit" lässt sich nicht an den Matheblock andocken

Open paul53 opened this issue 5 months ago • 3 comments

I'm sure that

  • [x] This issue is still present in the current beta version of this adapter
  • [x] There is no other (open) issue with the same topic (use the search!)
  • [x] This issue is not described in the adapter documentation / FAQ (read the docs!)

Script type

Blockly

The problem

Ursache ist vermutlich in Zeile 128 der Datei "src-editor/public/google-blockly/own/blocks_convert.js".

iobroker.current.log (in debug mode!)

No response

Version of nodejs

20.19.4

Version of ioBroker js-controller

7.0.6

Version of adapter

8.9.2

paul53 avatar Aug 03 '25 12:08 paul53

Funktioniert wenn du zusätzlich nach Zahl konvertierst:

Image

Diginix avatar Aug 03 '25 12:08 Diginix

Das ist bekannt, aber ein Mangel.

paul53 avatar Aug 03 '25 12:08 paul53

Das Problem ist der falsch definierte Output Type:

https://github.com/ioBroker/ioBroker.javascript/blob/33c7d649243792836ed5e3a39d995dabbe3012da/src-editor/public/google-blockly/own/blocks_convert.js#L128

Da ja immer getTime() aufgerufen wird, ist der Rückgabewert eigentlich Number

klein0r avatar Aug 03 '25 18:08 klein0r