node-red-contrib-eskomsepush 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-eskomsepush",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Node-RED interface for the Eskomsepush API",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -146,7 +146,7 @@ module.exports = function (RED) {
146
146
  statusText += 'Stage '+stage
147
147
  LoadShedding.active = (LoadShedding.schedule.active || LoadShedding.event.active)
148
148
  if (LoadShedding.active) {
149
- statusText += ' - ' + new Date(LoadShedding.end).toLocaleTimeString()
149
+ statusText += ' - ' + new Date(LoadShedding.next.end).toLocaleTimeString()
150
150
  fill = 'red'
151
151
  } else {
152
152
  statusText += ' - ' + new Date(LoadShedding.next.start).toLocaleTimeString()