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.

Events during a DST changeover are shortenend/extended by one hour

See original GitHub issue

Example at https://jsfiddle.net/ocucLm98/

When timezone is set to “local” and the system timezone is “Europe/London”, events taking place during the DST changeover seem to be hidden.

In the example we have an event on October 29th (when time goes back one hour at 2am local time) from 00:00 UTC to 01:00 UTC, which translates locally from 01:00 BST to 01:00 GMT.

When timezone is set to “Europe/London” it places the event between 00:00 and 01:00. The beginning is an hour early, the end would be correct in this case. Could it be that using “local” takes additionally Date.getTimezoneOffset() into account and that skews the period?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:30 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
nerouxcommented, Apr 26, 2020

@arshaw @acerix, no comment?

1reaction
urklecommented, Nov 17, 2017

So google calendar fails horribly. I tested the gaining an hour scenario. And the UX just displays 24hours only… thus an event from 12:30 -> 1:30 EDT and 12:30 -> 1:30 EST look identical (for the gaining an hour scenario)

image

Their editing UI does not allow you at all to pick 1:30 EST (the extra hour). So I had to use a different program to create these events… Which was Calendar on OS X.

in OS X the UX visually is the same you can’t tell the difference from looking at it.

image

incorrect labels in the popover image

but when editing they allow you to “sort of” set the other 1:30a, however it doesn’t appear to stick. 😦

image

So all varying degrees of “gee we never thought about it” even though a good half the world does DST.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How Does Daylight Saving Time Work? - Time and Date
DST is a seasonal time change measure where clocks are set ahead of standard ... This means that one hour is skipped, and...
Read more >
Daylight Saving Time 2022: When Does the Time Change?
Adjust your clocks Saturday night! Daylight Saving Time ends on Sunday, November 6, 2022, at 2:00 A.M. At this time, we “fall back”...
Read more >
What happens when the time changes for DST in the Spring ...
Events that are scheduled during the fall-back transition period (1:00 a.m. to 2:00 a.m. time period on the day fall back occurs) will...
Read more >
Daylight Saving Time Rules | NIST
The rules increased the duration of DST by about one month. ... We advance our clocks ahead one hour at the beginning of...
Read more >
Important note on Daylight Savings Time
Typically, clocks are set one hour ahead during the spring, and then back again ... When the DST changeover occurs in spring the...
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