X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/3fc25f9854ad1dd65e268060926f657680a23a74..66d9f3db4596e43efa55488569e06365a2125750:/.config/awesome/clocksarray.lua?ds=sidebyside 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