X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/3fc25f9854ad1dd65e268060926f657680a23a74..b9df886c82df6a0ceb28a2b2b3c5c0c600d5868a:/.config/awesome/clocksarray.lua?ds=inline diff --git a/.config/awesome/clocksarray.lua b/.config/awesome/clocksarray.lua index eed124e..1a71d34 100644 --- a/.config/awesome/clocksarray.lua +++ b/.config/awesome/clocksarray.lua @@ -7,10 +7,10 @@ local tblutils = require("tblutils") local module = {} local function get_textclocks_for_timezones(zones) - local now = luatz.time_in(nil) + local now = math.floor(luatz.time_in(nil)) local ret = {} for c, tz in tblutils.sorted_pairs(zones) do - local t = luatz.time_in(tz) + local t = math.floor(luatz.time_in(tz)) if math.abs(os.difftime(t, now)) > 10 then local widget = wibox.widget.textclock(c .. ": %H:%M (%a)", 60, tz) ret[#ret+1] = widget