]> granicus.if.org Git - neomutt/commitdiff
Fix a time zone snafu.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 20 Apr 1999 19:26:08 +0000 (19:26 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 20 Apr 1999 19:26:08 +0000 (19:26 +0000)
sendlib.c

index 43b561c81750f69bc055ba46863bef543855bd65..cd0b5051e1e66f85b46c40875ffd64b45bb697c1 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -1153,10 +1153,12 @@ char *mutt_make_date (char *s, size_t len)
   struct tm *l = localtime (&t);
   time_t tz = mutt_local_tz (t);
 
+  tz /= 60;
+
   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, l->tm_hour, l->tm_min, l->tm_sec,
-           tz / 3600, abs (tz) % 3600);
+           tz / 60, abs (tz) % 60);
   return (s);
 }