Skip to content

Commit cd4f448

Browse files
author
Luke Bonham
committed
b
1 parent 7d8307d commit cd4f448

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

widget/weather.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ local function factory(args)
122122
local utc_now = os.time(utc_d)
123123
local offdt = (loc_d.isdst and 1 or 0) * 3600 + 100 * (loc_d.min - utc_d.min) / 60
124124
local offset = os.difftime(loc_now, utc_now) + offdt
125-
local offday = (offset<0 and -86400) or 86400
125+
local offday = (offset < 0 and -86400) or 86400
126126

127127
if math.abs(loc_now - utc_now - offdt + loc_t) >= 86400 then
128128
utc_now = utc_now + offday
@@ -146,6 +146,7 @@ local function factory(args)
146146
weather.icon_path = icons_path .. "na.png"
147147
weather.widget:set_markup(weather_na_markup)
148148
end
149+
149150
weather.icon:set_image(weather.icon_path)
150151
end)
151152
end

wiki

Submodule wiki updated from 1e25033 to c221a27

0 commit comments

Comments
 (0)