aboutsummaryrefslogtreecommitdiffstats
path: root/env.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-11-29 18:22:58 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-11-29 18:22:58 +0000
commitd65427114647bf97e0be458406fc9eea6171dd54 (patch)
tree55f5ad8146172dd5a02822fe8873f78e0817d0f5 /env.c
parent953828220b90d444d0c18c706cd9aa1a37600e4a (diff)
downloadfetchmail-d65427114647bf97e0be458406fc9eea6171dd54.tar.gz
fetchmail-d65427114647bf97e0be458406fc9eea6171dd54.tar.bz2
fetchmail-d65427114647bf97e0be458406fc9eea6171dd54.zip
Clean up the generated trace headers.
svn path=/trunk/; revision=2232
Diffstat (limited to 'env.c')
-rw-r--r--env.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/env.c b/env.c
index 95d93be2..ee6359c4 100644
--- a/env.c
+++ b/env.c
@@ -116,15 +116,14 @@ char *rfc822timestamp(void)
time(&now);
#ifdef HAVE_STRFTIME
/*
- * Conform to RFC822. This is typically going to emit
- * a three-letter timezone for %Z, which is going to
- * be marked "obsolete syntax" in 822bis. Note that we
- * generate a 4-digit year here, avoiding Y2K hassles.
- * Note: max length of this timestamp in an English locale
- * should be 29 chars, assuming a 3-character timezone.
+ * Conform to RFC822. Note that we generate a 4-digit year here,
+ * avoiding Y2K hassles. Note: max length of this timestamp in an
+ * English locale should be 32 chars, assuming a 5-character timezone
+ * of the form [+-]nnnn. The only things that should vary by locale
+ * are the day and month abbreviations.
*/
strftime(buf, sizeof(buf)-1,
- "%a, %d %b %Y %H:%M:%S %Z", localtime(&now));
+ "%a, %d %b %Y %H:%M:%S %z", localtime(&now));
#else
/*
* This is really just a portability fallback, as the