Incorrect Time in payload

Hi everyone!

I'm using "get history" node to pull out info about an entity (TV LG).

Also I use node red 4.0.2 and a RPi 4 with HA:
image

The time that shows in the payload (last_changed / last_reported / last_updated) they are not correct.

image

I checked the time in HA & the TV and both are correct.

What I need to change to show the correct time?

Thanks in advance!

The times are GMT or UTC time you would need to correct them to your local time zone, you would normally do this prior to displaying, otherwise it is best to keep them as UTC .
There is a moment node which you can use to convert to your local time, this can also be done using javascript in a function node or JSONata in a change node. Some dashboards also allow conversion to local time when displaying.

Thanks!

Seems that with "Date/time formatter" node works fine.

Thanks

Note that the times are, in fact, correct. It is just that they are not formatted the way that you want them.

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