# Is this a bug in CronPlus?

**URL:** <https://discourse.nodered.org/t/is-this-a-bug-in-cronplus/48081>\
**Category:** General\
**Created:** [6 July 2021 08:52 UTC](https://discourse.nodered.org/t/is-this-a-bug-in-cronplus/48081 "2021-07-06T08:52:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [6 July 2021 08:52 UTC](https://discourse.nodered.org/t/is-this-a-bug-in-cronplus/48081/1 "2021-07-06T08:52:03Z")

</div>

Guys,

I am using the (excellent !) Cron Plus node.

I have it configured to fire every 5 minutes starting at 1 minute past the hour - it is acting as a trigger to fire off a web request for price updates from my electricity provider.

This works fine - however i now want to add an additional payload in with a Timestamp so i have added the Moment node in.

However it does not appear to reflect the property when it is called each time, but rather the time when i first added it to the flow.

Debug screenshots first

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/f/9f8c09e9071fa88c5eaa60532ec7c97c423edb13.png)

And here is the flow - you will not be able to run the HTTP request as it needs an API key

```auto
[{"id":"9b7cdaf6.c8cd98","type":"debug","z":"88029ce.abbab6","g":"7ca2c26f.db1b2c","name":"Current Price","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":990,"y":400,"wires":[]},{"id":"16a959bc.9524c6","type":"http request","z":"88029ce.abbab6","g":"7ca2c26f.db1b2c","name":"Get Current Price ","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://api.amber.com.au/v1/sites/01EC780K3J6E1SFKAH5SCQAZ0F/prices/current?resolution=30","tls":"","persist":false,"proxy":"","authType":"bearer","x":710,"y":400,"wires":[["9b7cdaf6.c8cd98","70001808.632f98","99bac1ce.5341c","fcf3917.0b7ce7"]]},{"id":"70001808.632f98","type":"debug","z":"88029ce.abbab6","g":"7ca2c26f.db1b2c","name":"Per KWH Price","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload[1].perKwh","targetType":"msg","statusVal":"","statusType":"auto","x":1000,"y":440,"wires":[]},{"id":"1182117f.dba1ef","type":"cronplus","z":"88029ce.abbab6","g":"7ca2c26f.db1b2c","name":"Trigger every 5 minutes - 1 minute past the hour","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"schedule1","payloadType":"date","payload":"","expressionType":"cron","expression":"0 1/5 * * * ? *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":320,"y":400,"wires":[["571f9b80.4a68c4"]]},{"id":"571f9b80.4a68c4","type":"moment","z":"88029ce.abbab6","g":"7ca2c26f.db1b2c","name":"ReadingTime","topic":"","input":"payload","inputType":"msg","inTz":"Australia/Sydney","adjAmount":0,"adjType":"days","adjDir":"add","format":"HH:MM","locale":"en-AU","output":"TimePeriod","outputType":"msg","outTz":"Australia/Sydney","x":550,"y":440,"wires":[["16a959bc.9524c6"]]}]

```

As you can see in the Debug window i am trying to add a new msg property Timestamp - this appears to have made its way through the flow - but as you can see in the debug window it is showing 18:07 whereas the debug itself happened at 18:43

Can anyone see what i am doing wrong ? I assume that Cronplus would just push through a normal timestamp ?

P.S. the times for the run are different (i.e. 6:43PM) because i ran it manually.

The same thing occurs if i let it fire off at the designated time

Craig

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [6 July 2021 09:42 UTC](https://discourse.nodered.org/t/is-this-a-bug-in-cronplus/48081/2 "2021-07-06T09:42:52Z")

</div>

Hi .. the problem is with the **Output format** in your Moment node ..

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/a/baefb72cd6914d6f3a6b3089786c53de0cf889e0.png)

it should have been .. HH:mm .. change to small `mm` for minutes otherwise its gonna use the month (MM)

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [6 July 2021 23:06 UTC](https://discourse.nodered.org/t/is-this-a-bug-in-cronplus/48081/3 "2021-07-06T23:06:28Z")

</div>

Thanks Mate - that was really stupid of me (Facepalm!!)

Craig

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 July 2021 23:06 UTC](https://discourse.nodered.org/t/is-this-a-bug-in-cronplus/48081/4 "2021-07-20T23:06:30Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
