diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-18 13:35:59 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-18 13:35:59 +0000 |
commit | f1becea682b563d366add102cd88431f15182b26 (patch) | |
tree | ddb0f320ccddad22add4ff5425c53c3dd70696cb /src/lua/lua_task.c | |
parent | c1c7b9c63d6d2cdf5c42443b7a9c8c80bae49162 (diff) | |
download | rspamd-f1becea682b563d366add102cd88431f15182b26.tar.gz rspamd-f1becea682b563d366add102cd88431f15182b26.zip |
[Minor] Use own localtime/gmtime
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r-- | src/lua/lua_task.c | 4 |
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 |