From d4bc678d671b5f1f942855e1e92dc591537d772c Mon Sep 17 00:00:00 2001 From: Degranon Date: Fri, 23 May 2025 20:38:14 +0200 Subject: Allow os.date --- source/core/StarLua.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core/StarLua.cpp') diff --git a/source/core/StarLua.cpp b/source/core/StarLua.cpp index 201f238..b70fe59 100644 --- a/source/core/StarLua.cpp +++ b/source/core/StarLua.cpp @@ -319,7 +319,7 @@ LuaEnginePtr LuaEngine::create(bool safe) { luaL_requiref(self->m_state, "os", luaopen_os, true); if (safe) { - StringSet osWhitelist = {"clock", "difftime", "time"}; + StringSet osWhitelist = {"clock", "difftime", "time", "date"}; lua_pushnil(self->m_state); while (lua_next(self->m_state, -2) != 0) { -- cgit v1.2.3