]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Reverse MAIL_SEARCH_ARG_FLAG_USE_TZ handling again.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 4 Nov 2016 10:03:47 +0000 (12:03 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 4 Nov 2016 10:03:47 +0000 (12:03 +0200)
It wasn't really wrong, it was just confusing. And doveadm's tz-handling
was wrong.

Reverses 059e4ac419224598349704b74cb9f6b49278df46

src/lib-storage/index/index-search.c

index d846cda8494c6af98fac441317a808c3a950086f..d79b72a948ecb8dea1755c833cbd0a2a2d4746dd 100644 (file)
@@ -324,7 +324,7 @@ static int search_arg_match_cached(struct index_search_context *ctx,
                }
 
                if ((arg->value.search_flags &
-                    MAIL_SEARCH_ARG_FLAG_USE_TZ) != 0) {
+                    MAIL_SEARCH_ARG_FLAG_USE_TZ) == 0) {
                        if (!have_tz_offset) {
                                tm = localtime(&date);
                                tz_offset = utc_offset(tm, date);