From f2e74994f2ac3b93c878ad37c09bb84fd24c9db5 Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Sat, 30 May 2015 10:30:48 -0700 Subject: [PATCH] awful.textclock: fix timezone handling This fixes issue #249. --- lib/awful/widget/textclock.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/widget/textclock.lua.in b/lib/awful/widget/textclock.lua.in index b3e0650e..ee0e43d8 100644 --- a/lib/awful/widget/textclock.lua.in +++ b/lib/awful/widget/textclock.lua.in @@ -32,7 +32,7 @@ function textclock.new(format, timeout) local w = textbox() local t = timer { timeout = timeout } t:connect_signal("timeout", function() - w:set_markup(os.date(format)) + w:set_markup(require("lgi").GLib.DateTime.new_now_local():format(format)) t.timeout = calc_timeout(timeout) t:again() end)