X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-mx%2Fmbox.c;h=857ba8679bcffaceeea5f292141d384462fd9cde;hb=5fed0f809d78ea5b4aea7681ad314843e554b090;hp=9729c5ec29ace485b3fe800c87e56d869b2c2ab7;hpb=9946738a6a1c27a5602a14d1afe2eea2389732b2;p=apps%2Fmadmutt.git diff --git a/lib-mx/mbox.c b/lib-mx/mbox.c index 9729c5e..857ba86 100644 --- a/lib-mx/mbox.c +++ b/lib-mx/mbox.c @@ -11,7 +11,7 @@ #include -#include +#include #include #include "mutt.h" @@ -99,7 +99,10 @@ static int mbox_parse_mailbox (CONTEXT * ctx) /* precompute the local timezone to speed up calculation of the date received */ - tz = mutt_local_tz (0); + { + time_t t = time(NULL); + tz = localtime(&t)->tm_gmtoff; + } loc = ftello (ctx->fp); while (fgets (buf, sizeof (buf), ctx->fp) != NULL) {