ref: e69cf9de6c04202e0ab133821dc2a41a71f219fb
parent: a7ca286469483ec1b20371880d7c5ed1277bd29a
author: kvik <kvik@a-b.xyz>
date: Mon Feb 22 08:37:51 EST 2021
los9lib: use local time for os.time
--- a/los9lib.c
+++ b/los9lib.c
@@ -226,6 +226,7 @@
else {
luaL_checktype(L, 1, LUA_TTABLE);
lua_settop(L, 1);
+ tm.tz = tzload("local");
tm.year = getfield(L, "year", -1, 1900);
tm.mon = getfield(L, "month", -1, 1);
tm.mday = getfield(L, "day", -1, 0);