esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
291 stars 36 forks source link

Time Component timezone acting in the opposite direction #6403

Open leofig-rj opened 1 week ago

leofig-rj commented 1 week ago

The problem

Using the Time Component. When I define timezone: America/Sao_Paulo, the result is three hours more than GMT0. It should have been three hours less.

Which version of ESPHome has the issue?

2024.10.2

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2024.11.0b6

What platform are you using?

ESP32-IDF

Board

esp32dev

Component causing the issue

Time Component

Example YAML snippet

time:
  - platform: ds1307
    id: time_ds1307
    i2c_id: i2c_bus
    timezone: America/Sao_Paulo

Anything in the logs that might be useful for us?

No response

Additional information

No response

blackjid commented 1 week ago

I'm having the same behaviour with the timezone America/Santiago... ~I'm not really sure if it has to do with this other issue https://github.com/esphome/issues/issues/6267~

In my case my time zone is GMT-300 so to fix the issue temporarily I used the timezone: <+03>3 which is +300