As per my comment on the std.rfc1123 patch. Should it also handle the trailing Z?
Comments? OK?
From f42cda9d076d63745921625251720bc2cd63823b Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" <[email protected]> Date: Mon, 15 Dec 2014 23:17:33 +0000 Subject: [PATCH] Fix the iso 8601 format --- lib/libvarnish/vtim.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 }; -- 2.1.3
_______________________________________________ varnish-dev mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
