We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d8307d commit cd4f448Copy full SHA for cd4f448
widget/weather.lua
@@ -122,7 +122,7 @@ local function factory(args)
122
local utc_now = os.time(utc_d)
123
local offdt = (loc_d.isdst and 1 or 0) * 3600 + 100 * (loc_d.min - utc_d.min) / 60
124
local offset = os.difftime(loc_now, utc_now) + offdt
125
- local offday = (offset<0 and -86400) or 86400
+ local offday = (offset < 0 and -86400) or 86400
126
127
if math.abs(loc_now - utc_now - offdt + loc_t) >= 86400 then
128
utc_now = utc_now + offday
@@ -146,6 +146,7 @@ local function factory(args)
146
weather.icon_path = icons_path .. "na.png"
147
weather.widget:set_markup(weather_na_markup)
148
end
149
+
150
weather.icon:set_image(weather.icon_path)
151
end)
152
wiki
0 commit comments