# Time Picker in ui\_form node sends wrong time in output payload

**URL:** <https://discourse.nodered.org/t/time-picker-in-ui-form-node-sends-wrong-time-in-output-payload/71296>\
**Category:** Dashboard\
**Tags:** home-assistant\
**Created:** [26 November 2022 18:08 UTC](https://discourse.nodered.org/t/time-picker-in-ui-form-node-sends-wrong-time-in-output-payload/71296 "2022-11-26T18:08:25Z")\
**Posts on this page:** 1\
**Showing post:** 54

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 November 2022 14:51 UTC](https://discourse.nodered.org/t/time-picker-in-ui-form-node-sends-wrong-time-in-output-payload/71296/54 "2022-11-28T14:51:43Z")

</div>

> [@E1cid](#):
>
> > [@Colin](#):
> >
> > Well $toMillis() is wrong as far as I can see.
> 
> Is it? or is it handling the year round UK DST in 1970 correctly?

If I put, in a Change node, Set msg.payload To JSONata `$toMillis("1970-01-01T16:01:00.000Z")` I get 57660000, which agrees with Date.getTime(). Where did you see $toMillis() give 61260000 for that timestamp?

---

_[View the full topic](https://discourse.nodered.org/t/time-picker-in-ui-form-node-sends-wrong-time-in-output-payload/71296)._
