diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-12-03 20:54:07 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-12-03 20:54:07 +0000 |
commit | d74d8163cc2ee1d70f52228c4dd8c64a0dce30ed (patch) | |
tree | 5c93df27ace373fca656ef6c6f3d28f831236f53 | |
parent | c5c722ef4afede13abe9994a878fedb09a2c7291 (diff) | |
download | fetchmail-d74d8163cc2ee1d70f52228c4dd8c64a0dce30ed.tar.gz fetchmail-d74d8163cc2ee1d70f52228c4dd8c64a0dce30ed.tar.bz2 fetchmail-d74d8163cc2ee1d70f52228c4dd8c64a0dce30ed.zip |
Get the date format right.
svn path=/trunk/; revision=1560
-rw-r--r-- | driver.c | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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); } } |