# Giving wrong unix time back

**URL:** <https://discourse.nodered.org/t/giving-wrong-unix-time-back/1101>\
**Category:** General\
**Created:** [26 June 2018 14:17 UTC](https://discourse.nodered.org/t/giving-wrong-unix-time-back/1101 "2018-06-26T14:17:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YT2310](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yt2310/32/35255_2.png) [@YT2310](https://discourse.nodered.org/u/YT2310)\
**Post date:** [26 June 2018 14:17 UTC](https://discourse.nodered.org/t/giving-wrong-unix-time-back/1101/1 "2018-06-26T14:17:55Z")

</div>

hello,  
I got a Problem with the following flow

> [{"id":"c83c9bc7.3128b","type":"inject","z":"f2b41c94.70381","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":180,"y":1480,"wires":[["4921115c.bdf2a"]]},{"id":"4921115c.bdf2a","type":"function","z":"f2b41c94.70381","name":"","func":"var now = new Date();\nvar Time = now.getTime();\nmsg.payload = Time;\nreturn msg; ","outputs":1,"noerr":0,"x":380,"y":1480,"wires":[["f58a73d0.89bc18"]]},{"id":"f58a73d0.89bc18","type":"debug","z":"f2b41c94.70381","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":550,"y":1480,"wires":}]

the Problem is that it doesn t give the correct unix timestamp back.. it is 3 numbers longer than the unix timestamp..

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [26 June 2018 14:55 UTC](https://discourse.nodered.org/t/giving-wrong-unix-time-back/1101/2 "2018-06-26T14:55:07Z")

</div>

Ahh, but is it giving the correct JavaScript time stamp back?

---

<div class="post-metadata">

**Author:** ![YT2310](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yt2310/32/35255_2.png) [@YT2310](https://discourse.nodered.org/u/YT2310)\
**Post date:** [27 June 2018 06:25 UTC](https://discourse.nodered.org/t/giving-wrong-unix-time-back/1101/3 "2018-06-27T06:25:25Z")

</div>

ah yes okay, I m sorry, I had no idea that Java script have it s own timestamp.
