Skip to content

Commit

Permalink
b
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Bonham committed Sep 11, 2017
1 parent 7d8307d commit cd4f448
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion widget/weather.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ local function factory(args)
local utc_now = os.time(utc_d)
local offdt = (loc_d.isdst and 1 or 0) * 3600 + 100 * (loc_d.min - utc_d.min) / 60
local offset = os.difftime(loc_now, utc_now) + offdt
local offday = (offset<0 and -86400) or 86400
local offday = (offset < 0 and -86400) or 86400

if math.abs(loc_now - utc_now - offdt + loc_t) >= 86400 then
utc_now = utc_now + offday
Expand All @@ -146,6 +146,7 @@ local function factory(args)
weather.icon_path = icons_path .. "na.png"
weather.widget:set_markup(weather_na_markup)
end

weather.icon:set_image(weather.icon_path)
end)
end
Expand Down
2 changes: 1 addition & 1 deletion wiki
Submodule wiki updated from 1e2503 to c221a2

0 comments on commit cd4f448

Please sign in to comment.