lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> -TZ = os.difftime(os.time(os.date("*t", 0)), os.time(os.date("!*t", 0)))
> +t = os.time()
> +TZ = os.difftime(os.time(os.date("*t", t)), os.time(os.date("!*t", t)))

Of course, os.time(os.date("*t", t)) should be replaced by t.

-- Roberto