ioBroker / ioBroker.javascript

Script engine for JavaScript and Blockly
MIT License
322 stars 120 forks source link

[Bug]: Wizard/Schedule not working as expected #1496

Open achimu opened 5 months ago

achimu commented 5 months ago

I'm sure that

Script type

Blockly schedule cron

The problem

the Blockly "timeschedule" cron job "monthly" is not working. After the startdate, the schedule is executed every day. The schedule wizard says: "on any date of every month at 00:01 from 03/01/2024".

The line in JS is:

schedule2 = schedule('{"time":{"exactTime":true,"start":"00:01"},"valid":{"from":"01.03.2024"},"period":{"months":1}}', async () => {});

From my side, there is something missing if I compare the lines with -> every week

schedule2 = schedule('{"time":{"exactTime":true,"start":"00:01"},"valid":{"from":"01.03.2024"},"period":{"weeks":1,"dows":"[0]"}}', async () => {});

-> every year

schedule2 = schedule('{"time":{"exactTime":true,"start":"00:01"},"valid":{"from":"01.03.2024"},"period":{"years":1,"yearDate":1,"yearMonth":1}}', async () => {});

iobroker.current.log (in debug mode!)

No response

Version of nodejs

18.17.1

Version of ioBroker js-controller

5.0.17

Version of adapter

7.7.0