summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-04-20 19:26:08 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-04-20 19:26:08 +0000
commit272ae6b247648467de2ffeae5114ad7e1fe96417 (patch)
treed30afd20451948644977c4af05fee98301294c7d
parent5152982ff807db3d36571e119583704f68631693 (diff)
Fix a time zone snafu.
-rw-r--r--sendlib.c4
1 files changed, 3 insertions, 1 deletions
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);
}