# Convert the time input to local time zone in node red through moment function

**URL:** <https://discourse.nodered.org/t/convert-the-time-input-to-local-time-zone-in-node-red-through-moment-function/58206>\
**Category:** Share Your Projects\
**Tags:** database\
**Created:** [12 February 2022 10:57 UTC](https://discourse.nodered.org/t/convert-the-time-input-to-local-time-zone-in-node-red-through-moment-function/58206 "2022-02-12T10:57:41Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [12 February 2022 11:25 UTC](https://discourse.nodered.org/t/convert-the-time-input-to-local-time-zone-in-node-red-through-moment-function/58206/4 "2022-02-12T11:25:06Z")

</div>

Please

In order to make the flow importable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

You can edit and correct your post by clicking the pencil ✏ icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

In the meantime, provided the timestamps in the database are in UTC (as they should be) then you should not need to do any conversion.

---

_[View the full topic](https://discourse.nodered.org/t/convert-the-time-input-to-local-time-zone-in-node-red-through-moment-function/58206)._
