From 6944fa282424926b1124edfddbbaa89bc759a74f Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 13 Feb 2018 11:56:39 +1300 Subject: [PATCH 1/1] make variables local --- .config/awesome/rc.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 811b91e..26d66cc 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -207,10 +207,9 @@ ZONES = { ["NZ"] = "Pacific/Auckland", ["DE"] = "Europe/Berlin" } - -now = luatz.time_in(nil) +local now = luatz.time_in(nil) for c, tz in sorted_pairs(ZONES) do - t = luatz.time_in(tz) + local t = luatz.time_in(tz) if math.abs(os.difftime(t, now)) > 10 then local widget = wibox.widget.textclock(c .. ": %H:%M (%a)", 60, tz) table.insert(clocks, spacer) -- 2.39.5