summaryrefslogtreecommitdiffstats
path: root/config/templates/linksysata-template.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-09 21:10:06 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-09 21:10:06 +0000
commitee0a9b946697ccc610b52b6dc182030fba225991 (patch)
tree0de8fd66e05012bfe8b1b258a336c609f3c92ef2 /config/templates/linksysata-template.lua
parenta8345974307b38d58dbfa352c7be93776e70ffa8 (diff)
downloadacf-provisioning-ee0a9b946697ccc610b52b6dc182030fba225991.tar.bz2
acf-provisioning-ee0a9b946697ccc610b52b6dc182030fba225991.tar.xz
Change use of require to work with Lua 5.2
Diffstat (limited to 'config/templates/linksysata-template.lua')
-rw-r--r--config/templates/linksysata-template.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/templates/linksysata-template.lua b/config/templates/linksysata-template.lua
index 73a1d1a..d05d512 100644
--- a/config/templates/linksysata-template.lua
+++ b/config/templates/linksysata-template.lua
@@ -68,7 +68,7 @@ xml_elem("CW_Setting", (values.services and values.services.callwaitingenable),
-- Syntax: stdoffset[dst[offset][,start[/time],end[/time]]]
-- Examples: 'GMT0' 'EST5EDT,M3.2.0,M11.1.0' '<GMT+5>5'
-- Parse time zone variable
-require('posixtz')
+posixtz = require('posixtz')
local tz = posixtz.parse(values.device.timezone)
if tz then
-- convert POSIX sign (W of GMT is '+') to Linksys (E of GMT is '+')