# Inject node - Use local time not UTC

**URL:** <https://discourse.nodered.org/t/inject-node-use-local-time-not-utc/11332>\
**Category:** General\
**Created:** [20 May 2019 16:28 UTC](https://discourse.nodered.org/t/inject-node-use-local-time-not-utc/11332 "2019-05-20T16:28:08Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [21 May 2019 20:49 UTC](https://discourse.nodered.org/t/inject-node-use-local-time-not-utc/11332/10 "2019-05-21T20:49:52Z")

</div>

> [@dustinw](#):
>
> It would be great to have a Time option in the change and inject nodes (based on moment.js).

Unfortunately, moment.js is rather a beast and is best left to a dedicated node in my opinion. Personally, I wouldn't want moment loaded all the time just in case I needed it once.

I would always choose to store and process date/time data in UTC to avoid DST & timezone errors that plague processing otherwise. Then just convert to local at display/user interaction time.

---

_[View the full topic](https://discourse.nodered.org/t/inject-node-use-local-time-not-utc/11332)._
