aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-12-03 20:54:07 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-12-03 20:54:07 +0000
commitd74d8163cc2ee1d70f52228c4dd8c64a0dce30ed (patch)
tree5c93df27ace373fca656ef6c6f3d28f831236f53
parentc5c722ef4afede13abe9994a878fedb09a2c7291 (diff)
downloadfetchmail-d74d8163cc2ee1d70f52228c4dd8c64a0dce30ed.tar.gz
fetchmail-d74d8163cc2ee1d70f52228c4dd8c64a0dce30ed.tar.bz2
fetchmail-d74d8163cc2ee1d70f52228c4dd8c64a0dce30ed.zip
Get the date format right.
svn path=/trunk/; revision=1560
-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);
}
}