# \[New Release\] node-red-contrib-moment - v4.0.0

**URL:** <https://discourse.nodered.org/t/new-release-node-red-contrib-moment-v4-0-0/33729>\
**Category:** Share Your Nodes\
**Created:** [4 October 2020 14:43 UTC](https://discourse.nodered.org/t/new-release-node-red-contrib-moment-v4-0-0/33729 "2020-10-04T14:43:54Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [4 October 2020 14:43 UTC](https://discourse.nodered.org/t/new-release-node-red-contrib-moment-v4-0-0/33729/1 "2020-10-04T14:43:54Z")

</div>

Hi all, please note that a new version of the moment node has been published to npm, it should appear in the Node-RED catalogue shortly.

The new version is v4.0.0 and is a new major version because of the following breaking change:

- Minimum Node.js version is now v10
- Minimum Node-RED version is now v1

Other than that, the other changes are:

- **BREAKING CHANGE** Updated dependencies mean that minimum Node.js version is now v10 (previously v8). Minimum Node-RED version is now v1.0 (previously v0.13)

- Update dependencies

- Move change log to separate file from readme.

- Contributed changes, see [Issue #34](https://github.com/TotallyInformation/node-red-contrib-moment/issues/34):

- Prep for Node-RED v1.

- Workaround for upstream parseFormat bug, see [Issue #24](https://github.com/TotallyInformation/node-red-contrib-moment/issues/24). If input is an ISO date string with seconds \>3dp, the input is trimmed to 3dp seconds.

- Added `msg.settings` to output msg. Shows the settings/parameters used. Allows for further processing or validation if needed.

- Added ability to override input and output Timezone settings from an incoming msg object. The appropriate setting must be empty and the properties to use are `msg.inTz` and `msg.outTz`. Resolves [Issue #31](https://github.com/TotallyInformation/node-red-contrib-moment/issues/31).

- Bug fix, locale now correctly defaults to host locale if not provided.

> **[node-red-contrib-moment](https://flows.nodered.org/node/node-red-contrib-moment)**
>
> Node-Red Node that produces formatted Date/Time output using the Moment.JS library. Timezone, dst and locale aware.

> **[TotallyInformation/node-red-contrib-moment](https://github.com/TotallyInformation/node-red-contrib-moment)**
>
> Node-Red Node that produces formatted Date/Time output using the Moment.JS library. Timezone, dst and locale aware. - TotallyInformation/node-red-contrib-moment

---

<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:** [3 December 2020 14:43 UTC](https://discourse.nodered.org/t/new-release-node-red-contrib-moment-v4-0-0/33729/2 "2020-12-03T14:43:59Z")

</div>

This topic was automatically closed after 60 days. New replies are no longer allowed.
