Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
60c98eb0
Commit
60c98eb0
authored
Dec 15, 2014
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing T mandated by ISO 8601
parent
bfe5df84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vtim.c
lib/libvarnish/vtim.c
+3
-2
No files found.
lib/libvarnish/vtim.c
View file @
60c98eb0
...
...
@@ -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 */
"%F
T
%T"
,
/* ISO 8601 */
NULL
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment