From 272ae6b247648467de2ffeae5114ad7e1fe96417 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Tue, 20 Apr 1999 19:26:08 +0000 Subject: [PATCH] Fix a time zone snafu. --- sendlib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sendlib.c b/sendlib.c index 43b561c8..cd0b5051 100644 --- 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); } -- 2.49.0