summaryrefslogtreecommitdiffstats
path: root/mbox.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-01-06 10:13:01 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-01-06 10:13:01 +0000
commitd02b2498d47d9d9e3e6d30cff78e7f5435dee133 (patch)
tree1f6020ac18919df9dee40b83696e605d5fd83858 /mbox.c
parent4a3e38f09949c92947e227122e227ef311a1e170 (diff)
[unstable] Merge changes from stable: rx -> regex, Byrial's timezone
patch, translation updates.
Diffstat (limited to 'mbox.c')
-rw-r--r--mbox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbox.c b/mbox.c
index 7ab67a6f..e2d6acd2 100644
--- a/mbox.c
+++ b/mbox.c
@@ -107,7 +107,7 @@ int mmdf_parse_mailbox (CONTEXT *ctx)
/* precompute the local timezone to speed up calculation of the
received time */
- tz = mutt_local_tz ();
+ tz = mutt_local_tz (0);
buf[sizeof (buf) - 1] = 0;
@@ -145,7 +145,7 @@ int mmdf_parse_mailbox (CONTEXT *ctx)
}
}
else
- hdr->received = t + tz;
+ hdr->received = t - tz;
hdr->env = mutt_read_rfc822_header (ctx->fp, hdr, 0);
@@ -249,7 +249,7 @@ int mbox_parse_mailbox (CONTEXT *ctx)
/* precompute the local timezone to speed up calculation of the
date received */
- tz = mutt_local_tz ();
+ tz = mutt_local_tz (0);
loc = ftell (ctx->fp);
while (fgets (buf, sizeof (buf), ctx->fp) != NULL)
@@ -281,7 +281,7 @@ int mbox_parse_mailbox (CONTEXT *ctx)
mx_alloc_memory (ctx);
curhdr = ctx->hdrs[ctx->msgcount] = mutt_new_header ();
- curhdr->received = t + tz;
+ curhdr->received = t - tz;
curhdr->offset = loc;
curhdr->index = ctx->msgcount;