Skip to content

Commit

Permalink
v1.1.35: Fix detection of Daylight Saving Time after 2:59am on the da…
Browse files Browse the repository at this point in the history
…y we fall back
  • Loading branch information
poirier committed Nov 6, 2022
1 parent 0934222 commit 06ff859
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/backgroundtask/time.brs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ function isEasternDaylightSavingTime(datetime) ' could be boolean, or invalid
if day < dateOfChange then return true
if day > dateOfChange then return false
if hour < 1 then return true ' not 1am yet
if hour = 2 and (minute > 0 or second > 0) then return false ' got past 2am, dst is over
if hour = 2 and (minute > 0 or second > 0) then return false ' got past 2:00am, dst is over
if hour > 2 then return false ' got past 2:59am, dst is over
' We're in the 2 hours between 1am and 2am, but we don't know which hour, so
' we don't know if the clocks have turned back yet or not.
return invalid
Expand Down

0 comments on commit 06ff859

Please sign in to comment.