aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 580a847d4..bfe5079fd 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -3383,7 +3383,7 @@ lua_task_get_date (lua_State *L)
time_t tt;
tt = tim;
- localtime_r (&tt, &t);
+ rspamd_localtime (tt, &t);
#if !defined(__sun)
t.tm_gmtoff = 0;
#endif
@@ -3404,7 +3404,7 @@ lua_task_get_date (lua_State *L)
tt = rspamd_parse_smtp_date (h->decoded, strlen (h->decoded));
if (!gmt) {
- localtime_r (&tt, &t);
+ rspamd_localtime (tt, &t);
#if !defined(__sun)
t.tm_gmtoff = 0;
#endif