[master] 60c98eb Add missing T mandated by ISO 8601
Federico G. Schwindt
fgsch at lodoss.net
Tue Dec 16 15:41:36 CET 2014
commit 60c98eb04e58fe2c3f51fefcba9b138abe2111de
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Mon Dec 15 23:17:33 2014 +0000
Add missing T mandated by ISO 8601
diff --git a/lib/libvarnish/vtim.c b/lib/libvarnish/vtim.c
index 50033c2..28b5f13 100644
--- a/lib/libvarnish/vtim.c
+++ b/lib/libvarnish/vtim.c
@@ -32,13 +32,14 @@
* In the highly unlikely event of performance trouble, handbuilt versions
* would likely be faster than relying on the OS time functions.
*
- * We must parse three different formats:
+ * We must parse four different formats:
* 000000000011111111112222222222
* 012345678901234567890123456789
* ------------------------------
* "Sun, 06 Nov 1994 08:49:37 GMT" RFC822 & RFC1123
* "Sunday, 06-Nov-94 08:49:37 GMT" RFC850
* "Sun Nov 6 08:49:37 1994" ANSI-C asctime()
+ * "1994-11-06T08:49:37" ISO 8601
*
* And always output the RFC1123 format.
*
@@ -115,7 +116,7 @@ static const char *fmts[] = {
"%a, %d %b %Y %T GMT", /* RFC 822 & RFC 1123 */
"%A, %d-%b-%y %T GMT", /* RFC 850 */
"%a %b %d %T %Y", /* ANSI-C asctime() */
- "%F %T", /* ISO 8601 */
+ "%FT%T", /* ISO 8601 */
NULL
};
More information about the varnish-commit
mailing list