From 4c43e7e40e584ca682dd0d36efca12a4882f220e Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 3 Jan 2014 17:52:48 -0500 Subject: [PATCH] luatz/tzinfo: Fix accidental global --- luatz/tzinfo.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5