From 23f73405ae10417da74538eade509ceb398d1553 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Tue, 30 Jan 2018 12:32:04 +1000 Subject: [PATCH] fix timezone in lua post message --- src/lua_glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua_glue.c b/src/lua_glue.c index ab335c7..3ab70a8 100644 --- a/src/lua_glue.c +++ b/src/lua_glue.c @@ -353,7 +353,7 @@ int l_tempPath(lua_State *L) { int l_postMessage(lua_State *L) { int confr = lua_tointeger(L, 1); int area = lua_tointeger(L, 2); - time_t dwritten = time(NULL); + time_t dwritten = utc_to_local(time(NULL)); char *to = lua_tostring(L, 3); char *from = lua_tostring(L, 4); char *subject = lua_tostring(L, 5);