From: Vsevolod Stakhov Date: Fri, 23 Dec 2016 15:46:09 +0000 (+0000) Subject: [Minor] Use gmt dates if possible X-Git-Tag: 1.5.0~491 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8502e7b48e894f36b2312adbc05a7a19fdd1969;p=thirdparty%2Frspamd.git [Minor] Use gmt dates if possible --- diff --git a/rules/misc.lua b/rules/misc.lua index 0610f126dd..f3a2ab7d95 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