Skip to content

Commit

Permalink
lib-storage: Reverse MAIL_SEARCH_ARG_FLAG_USE_TZ handling again.
Browse files Browse the repository at this point in the history
It wasn't really wrong, it was just confusing. And doveadm's tz-handling
was wrong.

Reverses 059e4ac
  • Loading branch information
sirainen committed Nov 4, 2016
1 parent 4ff193d commit 0303b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-storage/index/index-search.c
Expand Up @@ -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);
Expand Down

0 comments on commit 0303b69

Please sign in to comment.