+-- read the timezone from /etc/timezone (this doesn't work, somehow)
+local function read_tz_file(path)
+ local file = io.open(path, "r") -- r read mode and b binary mode
+ if not file then return nil end
+ local content = file:read "*a" -- *a or *all reads the whole file
+ file:close()
+ content = content:gsub("^%s*", "")
+ content = content:gsub("%s*$", "")
+ return content
+end
+
+local tz_string = read_tz_file("/etc/timezone")
+