From: Thomas Roessler Date: Fri, 1 Jan 1999 09:43:15 +0000 (+0000) Subject: New Year's time zone handling patch from Manish Singh X-Git-Tag: archive/mutt-0-95-exp~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2cfd7071cada25fba9403b8b69bd03aad1fa5a77;p=mutt New Year's time zone handling patch from Manish Singh . --- diff --git a/sendlib.c b/sendlib.c index 846ebe2c..df97dc96 100644 --- a/sendlib.c +++ b/sendlib.c @@ -1154,7 +1154,12 @@ char *mutt_make_date (char *s, size_t len) yday = l->tm_yday - yday; if (yday != 0) + { + if (yday > 1 || yday < -1) + yday /= -yday; + tz += yday * 24 * 60; /* GMT is next or previous day! */ + } snprintf (s, len, "Date: %s, %d %s %d %02d:%02d:%02d %+03d%02d\n", Weekdays[l->tm_wday], l->tm_mday, Months[l->tm_mon], l->tm_year+1900,