X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/3986096b79163d8e13a64730b10ba1e9783ccd81..e8263f466bf4da10b9577ac6029b3c2f5e1750fb:/luatz/tzinfo.lua?ds=inline diff --git a/luatz/tzinfo.lua b/luatz/tzinfo.lua index adaf173..75be0f1 100644 --- a/luatz/tzinfo.lua +++ b/luatz/tzinfo.lua @@ -2,10 +2,10 @@ local gettime = require "luatz.gettime".gettime local timetable_mt = require "luatz.timetable".timetable_mt local function to_timestamp ( o ) - if type ( ts_local ) == "number" then - return ts_local + if type ( o ) == "number" then + return o elseif getmetatable ( o ) == timetable_mt then - return ts_local:timestamp ( ) + return o:timestamp ( ) end end