# How to set 2 timestamp for the same request?

**URL:** <https://discourse.nodered.org/t/how-to-set-2-timestamp-for-the-same-request/66535>\
**Category:** General\
**Tags:** function-node\
**Created:** [17 August 2022 07:59 UTC](https://discourse.nodered.org/t/how-to-set-2-timestamp-for-the-same-request/66535 "2022-08-17T07:59:29Z")\
**Posts on this page:** 2\
**Page:** 3

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [25 August 2022 11:21 UTC](https://discourse.nodered.org/t/how-to-set-2-timestamp-for-the-same-request/66535/41 "2022-08-25T11:21:31Z")

</div>

good that it works .. but there may be a small issue with the way i took for a solution.  
If for some reason your weather device/server is not responding with http-request,  
Flow Context will have the last data values saved and  
the second output of Cron-plus will still be triggering every 10 minutes inserting old data into the DB  
and that is wrong.

One fix would be to use a **Filter node** between the Function and the mysql node so if a msg is unchanged within those 10min, not to send it to the DB.

---

<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:** [8 September 2022 11:21 UTC](https://discourse.nodered.org/t/how-to-set-2-timestamp-for-the-same-request/66535/42 "2022-09-08T11:21:32Z")

</div>

Closed on 8 September 2022 11:21 UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/how-to-set-2-timestamp-for-the-same-request/66535.md?page=2)
