question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timer offset by timezone offset in HA 2021.6.x

See original GitHub issue

Describe 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?

image

image

To Reproduce Steps to reproduce the behavior:

  1. set a new alexa time to go off in 30min
  2. 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
OnkelKeulecommented, Jun 5, 2021

Same problem here (for me it’s 2h off - but I am GMT+2). Seems like there is an issue with the timestamp.

1reaction
JamieP83commented, Jun 8, 2021

Hey That’s just the format of how to show time right? that doesn’t help with the offsets overall?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found