From d74d8163cc2ee1d70f52228c4dd8c64a0dce30ed Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 3 Dec 1997 20:54:07 +0000 Subject: Get the date format right. svn path=/trunk/; revision=1560 --- driver.c | 15 ++++++++++----- 1 file 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); } } -- cgit v1.2.3