awful.textclock: fix timezone handling

This fixes issue #249.
This commit is contained in:
Ganesh Ajjanagadde 2015-05-30 10:30:48 -07:00 committed by Daniel Hahler
parent c30fe5b166
commit f2e74994f2
1 changed files with 1 additions and 1 deletions

View File

@ -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)