dirkjanfaber / node-red-contrib-eskomsepush

Node-RED node for the EskomsePush API
MIT License
7 stars 2 forks source link

[BUG] now.getUTCDate) missing brackets () #11

Closed nicopret1 closed 1 year ago

nicopret1 commented 1 year ago

Describe the bug A clear and concise description of what the bug is. I think there might be an error in the code on line 293: if (new Date(EskomSePushInfo.calc.next.start).getUTCDay() !== now.getUTCDate) {

It should be: if (new Date(EskomSePushInfo.calc.next.start).getUTCDay() !== now.getUTCDate()) {

To Reproduce Steps to reproduce the behavior:

  1. Using node 'eskomsepush'
  2. Click on '....'
  3. See error I've seen issues where the status colour were not updated correctly after I switched between "test" and "active" modes.

Expected behavior A clear and concise description of what you expected to happen. Status colour should be updated to green if all working and switched from test to active.

Screenshots If applicable, add screenshots to help explain your problem.

Flow If applicable, add a flow to help explain your problem.

Software (please complete the following information):

Additional context Add any other context about the problem here.

dirkjanfaber commented 1 year ago

Just released version 0.0.17 (was a bit hasty with 0.0.16, hence the jump).