Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocks shifted by 1h #17

Open
nejco opened this issue Nov 12, 2024 · 3 comments
Open

Blocks shifted by 1h #17

nejco opened this issue Nov 12, 2024 · 3 comments

Comments

@nejco
Copy link

nejco commented Nov 12, 2024

It seems all block are shifted by 1 hour. Block 1 should start at 7:00 but it was changed at 8:00. Timezone in homeassistant is correct (Vienna, GMT+1). System time is also correct.

date
Tue Nov 12 11:55:50 AM CET 2024
Python 3.11.2 (main, Aug 26 2024, 07:20:54) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from datetime import datetime
>>> 
>>> def get_current_time():
...     # Get the current time
...     current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
...     return current_time
... 
>>> # Print the current time
>>> print("Current time:", get_current_time())
Current time: 2024-11-12 11:50:16
Screenshot 2024-11-12 at 11 54 09 Screenshot 2024-11-12 at 11 53 38
@frlequ
Copy link
Owner

frlequ commented Nov 12, 2024

Can you check time zone under profile

image

Also, can you share output from template:
{{ now().strftime('%H:%M:%S') }}

@nejco
Copy link
Author

nejco commented Nov 12, 2024

This also shows the correct time
Screenshot 2024-11-12 at 19 20 32
Screenshot 2024-11-12 at 19 23 05

@frlequ
Copy link
Owner

frlequ commented Nov 12, 2024

The component gets its time from the HAOS server time zone. Your HAOS setup might be pulling the datetime function differently (not synchronized?), or the time zone setting under your HA profile could be corrupted. I can only replicate the issue if I change the time zone to display a different local time (+1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants