Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(34)

Unified Diff: src/pkg/net/http/cookie.go

Issue 5565043: code review 5565043: time: add default location parameter to time.Parse
Patch Set: diff -r b372a927701e https://go.googlecode.com/hg/ Created 13 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/encoding/asn1/asn1.go ('k') | src/pkg/net/http/fs.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/net/http/cookie.go
===================================================================
--- a/src/pkg/net/http/cookie.go
+++ b/src/pkg/net/http/cookie.go
@@ -107,9 +107,9 @@
continue
case "expires":
c.RawExpires = val
- exptime, err := time.Parse(time.RFC1123, val)
+ exptime, err := time.Parse(time.RFC1123, nil, val)
if err != nil {
- exptime, err = time.Parse("Mon, 02-Jan-2006 15:04:05 MST", val)
+ exptime, err = time.Parse("Mon, 02-Jan-2006 15:04:05 MST", nil, val)
if err != nil {
c.Expires = time.Time{}
break
« no previous file with comments | « src/pkg/encoding/asn1/asn1.go ('k') | src/pkg/net/http/fs.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b