diff --git a/src/lib-storage/index/index-search.c b/src/lib-storage/index/index-search.c index d846cda849..d79b72a948 100644 --- a/src/lib-storage/index/index-search.c +++ b/src/lib-storage/index/index-search.c @@ -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);