parent
c30fe5b166
commit
f2e74994f2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue