# Timeline Plot - to record events on a timeline

**URL:** <https://discourse.nodered.org/t/timeline-plot-to-record-events-on-a-timeline/73958>\
**Category:** General\
**Tags:** flexdash\
**Created:** [20 January 2023 11:51 UTC](https://discourse.nodered.org/t/timeline-plot-to-record-events-on-a-timeline/73958 "2023-01-20T11:51:48Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [21 January 2023 14:05 UTC](https://discourse.nodered.org/t/timeline-plot-to-record-events-on-a-timeline/73958/8 "2023-01-21T14:05:38Z")

</div>

That appears to be any issue with the conversion process and not Flexdash.

Strange, I don't use the `moment node` but inputting `1674246293.7726238` into a change node (using the node-RED inbuilt moment library), I get;

![output](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/3/833495c6f17b61148f4f75962862d73b00b74ebc.jpeg)

Which I assume is correct (except timezone difference)

Try;

```auto
[{"id":"54c46ebe.3b623","type":"change","z":"1543d308b342690a","name":"Change node","rules":[{"t":"set","p":"payload","pt":"msg","to":"$moment()","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":1895,"wires":[["2c896b1f.98a694"]]},{"id":"2c896b1f.98a694","type":"debug","z":"1543d308b342690a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":880,"y":1895,"wires":[]},{"id":"7991fc04.3ff914","type":"inject","z":"1543d308b342690a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1674246293.7726238","payloadType":"num","x":510,"y":1895,"wires":[["54c46ebe.3b623"]]}]

```

For more examples about using the in-built `moment` library (including selecting the timezone), [see this post](https://discourse.nodered.org/t/formatting-times-dates-with-moment-js-examples/29553) that I wrote some time ago.

---

_[View the full topic](https://discourse.nodered.org/t/timeline-plot-to-record-events-on-a-timeline/73958)._
