# Moment node - Confused!

**URL:** <https://discourse.nodered.org/t/moment-node-confused/101880>\
**Category:** General\
**Created:** [9 October 2026 15:33 UTC](https://discourse.nodered.org/t/moment-node-confused/101880 "2026-10-09T15:33:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mudwalker](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@mudwalker](https://discourse.nodered.org/u/mudwalker)\
**Post date:** [9 October 2026 15:33 UTC](https://discourse.nodered.org/t/moment-node-confused/101880/1 "2026-10-09T15:33:59Z")

</div>

I have a small flow which consist of:  
Inject node - just to trigger  
Function node to get current time - msg.now  
a Moment Node to get a display of time in the format I want.

```auto
[{"id":"2972bd2b49e268c3","type":"inject","z":"e6db211287369afe","g":"73d4a867c162a3dc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":1380,"wires":[["698e329cc6caa517"]]},{"id":"abf0b1bf7b8ff7a9","type":"debug","z":"e6db211287369afe","g":"73d4a867c162a3dc","name":"debug 60","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":780,"y":1420,"wires":[]},{"id":"698e329cc6caa517","type":"function","z":"e6db211287369afe","g":"73d4a867c162a3dc","name":"NOW","func":"msg.now = new Date();\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":330,"y":1380,"wires":[["61539d57cedf7285","e7cbd9bb85fa42c3"]]},{"id":"61539d57cedf7285","type":"moment","z":"e6db211287369afe","g":"73d4a867c162a3dc","name":"","topic":"","input":"payload","inputType":"msg","inTz":"ETC/UTC","adjAmount":0,"adjType":"days","adjDir":"add","format":"ddd, HH:MM:SS DD-MMM-YY","locale":"en-GB","output":"nowTime","outputType":"msg","outTz":"Europe/London","x":380,"y":1420,"wires":[["818623f95736c9e4","abf0b1bf7b8ff7a9"]]},{"id":"6ddb5cfe35a430e6","type":"global-config","env":[],"modules":{"node-red-contrib-moment":"5.0.0"}}]

```

This is the result in a Debug node

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/1/01a987ea2869f428077fac53d22056feeea75978.png)  
Can anyone please explain why there is a difference between the Input and the Output which is not the straight HOUR difference I would expect when converting from UTC to Europe/London.

msg.payload and msg.now are within tolerance, msg.nowTime is out (but in the correct format!)!

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

TIA

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [9 October 2026 16:26 UTC](https://discourse.nodered.org/t/moment-node-confused/101880/2 "2026-10-09T16:26:34Z")

</div>

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

According to [https://momentjs.com/docs/#/displaying/format/](https://momentjs.com/docs/#/displaying/format/), "MM" is Month (01 to 12) and "SS" is fractional second (00 to 99)

I suspect you need "HH:mm:ss"

😃

---

<div class="post-metadata">

**Author:** ![mudwalker](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@mudwalker](https://discourse.nodered.org/u/mudwalker)\
**Post date:** [9 October 2026 16:46 UTC](https://discourse.nodered.org/t/moment-node-confused/101880/3 "2026-10-09T16:46:17Z")

</div>

DOH!

Been chasing that for over an hour. The really annoying thing is that I recall having been caught by it before! 😳

Thank you!

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [9 October 2026 16:59 UTC](https://discourse.nodered.org/t/moment-node-confused/101880/4 "2026-10-09T16:59:19Z")

</div>

> [@mudwalker](#):
>
> The really annoying thing is that I recall having been caught by it before!

Welcome to my world 🙂

---

<div class="post-metadata">

**Author:** ![mudwalker](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@mudwalker](https://discourse.nodered.org/u/mudwalker)\
**Post date:** [9 October 2026 17:00 UTC](https://discourse.nodered.org/t/moment-node-confused/101880/5 "2026-10-09T17:00:56Z")

</div>

Yes Garry, and the worst of it is, it is becoming more and more frequent!

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [9 October 2026 17:58 UTC](https://discourse.nodered.org/t/moment-node-confused/101880/6 "2026-10-09T17:58:16Z")

</div>

Which disproves the statement "We learn from our mistakes" 🙂 🙃
