]> granicus.if.org Git - mutt/commitdiff
New Year's time zone handling patch from Manish Singh
authorThomas Roessler <roessler@does-not-exist.org>
Fri, 1 Jan 1999 09:43:15 +0000 (09:43 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Fri, 1 Jan 1999 09:43:15 +0000 (09:43 +0000)
<yosh@gimp.org>.

sendlib.c

index 846ebe2cde36025a3f48b255e530f6f3b798f57f..df97dc963a8515f57fbd5d00eec3ce71305a92c0 100644 (file)
--- 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,