The date picker output on the dashboard is exactly one day ahead. Is this intentional or a bug? For example, if one chooses "7/10/2021" from the date picker, then the output is "7/11/2021".
Here is the test flow.
[{"id":"d91caa22.d93c68","type":"ui_date_picker","z":"3853257b.be4c8a","name":"","label":"date","group":"14f3a809.89dcc8","order":4,"width":0,"height":0,"passthru":true,"topic":"topic","topicType":"msg","x":580,"y":1220,"wires":[["af73c0a7.f00af"]]},{"id":"af73c0a7.f00af","type":"function","z":"3853257b.be4c8a","name":"","func":"//msg.payload=new Date(1625880253754); database\n\n//msg.payload=new Date(1625931000000);\n\n\n//msg.payload=new Date(1625934180000);\n\nvar date=new Date(msg.payload);\n\nmsg.payload=date;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":800,"y":1220,"wires":[["12558dc5.0d0702"]]},{"id":"12558dc5.0d0702","type":"debug","z":"3853257b.be4c8a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1110,"y":1220,"wires":[]},{"id":"14f3a809.89dcc8","type":"ui_group","name":"Group 1","tab":"eb6fe9af.cd7238","order":1,"disp":true,"width":6},{"id":"eb6fe9af.cd7238","type":"ui_tab","name":"Test","icon":"dashboard","order":16,"disabled":false,"hidden":false}]