Timer offset by timezone offset in HA 2021.6.x
See original GitHub issueDescribe the bug Hey, ive noticed that my “next_timer” values are always out by 1hour? So if i start a timer at 7:20pm, to go off in 20min (7:40pm), it actually goes back one hour and says its “40min ago”
i’m pretty sure its the +1 daylight savings not being taken into account?
To Reproduce Steps to reproduce the behavior:
- set a new alexa time to go off in 30min
- check out the result in home assistant, will be incorrect
Expected behavior For the time to show the correct value
Screenshots See above
System details
- Home-assistant (version): supervisor-2021.05.4
- Hassio (Yes/No): yes
- alexa_media (version from
const.py
or HA startup): “3.10.5” - alexapy (version from
pip show alexapy
or HA startup): - Amazon 2FA is enabled (y/n). y
Logs Please provide logs. We’ll be most likely asking for them anyway.
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Calculating the timezone offset of a future date knowing only ...
For a future date, 01-Apr-2021 the clocks will change and the offset will be different.
Read more >Timezone offset calculation - API & Programming
Function to calculate time zone offset function getTZOffset(strTimeZone) { //get current datetime in UTC var dateUTC = new Date(); dateUTC.
Read more >AT TIME ZONE (Transact-SQL) - SQL Server - Microsoft Learn
Converts an inputdate to the corresponding datetimeoffset value in the target time zone. When inputdate is provided without offset ...
Read more >Valid Time Zone Values - Mersive Solstice Documentation
ID Name Offset (ms) Offset (hrs)
Pacific/Midway GMT‑11:00, Midway Island ‑39600000 ‑11
Pacific/Honolulu GMT‑10:00, Hawaii ‑36000000 ‑10
America/Anchorage GMT‑8:00, Alaska ‑28800000 ‑8
Read more >Template:Current minute offset in time zone - Wikipedia
This template gives the current minute offset from UTC time for the given time zone. It can be used in conjunction with {{Current...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same problem here (for me it’s 2h off - but I am GMT+2). Seems like there is an issue with the timestamp.
Hey That’s just the format of how to show time right? that doesn’t help with the offsets overall?