summaryrefslogtreecommitdiffstats
path: root/rules/misc.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-23 15:46:09 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-23 15:46:09 +0000
commita8502e7b48e894f36b2312adbc05a7a19fdd1969 (patch)
tree3947c4329584158fa91b1337d8a13a0e041fd647 /rules/misc.lua
parent4d73076b3143502bf5d000789e0d31cd0a7dd7e5 (diff)
downloadrspamd-a8502e7b48e894f36b2312adbc05a7a19fdd1969.tar.gz
rspamd-a8502e7b48e894f36b2312adbc05a7a19fdd1969.zip
[Minor] Use gmt dates if possible
Diffstat (limited to 'rules/misc.lua')
-rw-r--r--rules/misc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/misc.lua b/rules/misc.lua
index 0610f126d..f3a2ab7d9 100644
--- a/rules/misc.lua
+++ b/rules/misc.lua
@@ -123,8 +123,8 @@ rspamd_config.MISSING_DATE = {
rspamd_config.DATE_IN_FUTURE = {
callback = function(task)
if rspamd_config:get_api_version() >= 5 then
- local dm = task:get_date{format = 'message'}
- local dt = task:get_date{format = 'connect'}
+ local dm = task:get_date{format = 'message', gmt = true}
+ local dt = task:get_date{format = 'connect', gmt = true}
-- 2 hours
if dm > 0 and dm - dt > 7200 then
return true