aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/driver.c b/driver.c
index 347f66c6..3df9447e 100644
--- a/driver.c
+++ b/driver.c
@@ -1215,15 +1215,20 @@ int num; /* index of message */
time(&now);
#ifdef HAVE_STRFTIME
- /* conform to RFC822 */
- strftime(buf, sizeof(buf), "%a, %d b %Y %H:%M:%S %Z\n", localtime(&now));
+ /*
+ * Conform to RFC822. This is typically going to emit
+ * a three-letter timezone for
+ */
+ strftime(buf + strlen(buf), sizeof(buf) - strlen(buf),
+ "%a, %d %b %Y %H:%M:%S %Z\n", localtime(&now));
#else
/*
- * This is really just a fallback, as the date format ctime(3)
- * emits is not RFC822 conformant.
+ * This is really just a portability fallback, as the
+ * date format ctime(3) emits is not RFC822
+ * conformant.
*/
strcat(buf, ctime(&now));
-#endif /* STRFTIME */
+#endif /* HAVE_STRFTIME */
n = stuffline(ctl, buf);
}
}