Problem with time in MQTT server

Hi,
I have an add-on that push data through the MQTT server. When i look in the MQTT server, i see the data with the correct timestamp format, with GMT-5.

when i look in the dev tools on home assistant, i see that the dates are with GMT-0, and not GMT-5.

hydroqc_maison 
Next critical peak end 2025-01-08T14:00:00+00:00 
device_class: timestamp 
icon: mdi:clock-end 
friendly_name: hydroqc_maison Next critical peak end
[sensor.hydroqc_maison_next_critical_peak_start]
hydroqc_maison Next critical peak start 2025-01-08T11:00:00+00:00 
device_class: timestamp 
icon: mdi:clock-start 
friendly_name: hydroqc_maison Next critical peak start

In my settings, config, general i have GMT-5 set as my timezone.

What could be the problem?
Thanks

I was about to say topic data usually comes from the publisher not the broker; however your logs suggest the publisher is correctly showing TZ-05:00, but the HA MQTT client is ignoring the TZ and stripping it to TZ-00:00 incorrectly.

All of my kit is set to UTC, and Tasmota doesn’t seem to report much timestamped data (e.g. tele is just timestamped by the subscribed MQTT explorer log) so I’m struggling to confirm the issue.

It’s the publisher, but it’s correctly published. It’s like something is translating timezone, but i don’t have a clue where.

There is no timezone setting in mqtt, the only timezone settings is in home assistant config.

i opened a github issue for this, let’s see if they do something.
Sensor device_class timestamp doesn’t seem to use configured timezone · Issue #135127 · home-assistant/core

1 Like