aboutsummaryrefslogtreecommitdiff
path: root/cookie.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2016-01-04 15:55:30 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2016-01-04 15:55:30 +0200
commit4bca54c0bb50b50fc570061b75812fd44a6d3fc3 (patch)
tree2b56dbe93db6101307dbb9d7bebe269331b9cafc /cookie.go
parentAdded WriteGzip and WriteGunzip helper functions (diff)
downloadfasthttp-4bca54c0bb50b50fc570061b75812fd44a6d3fc3.tar.gz
fasthttp-4bca54c0bb50b50fc570061b75812fd44a6d3fc3.tar.bz2
fasthttp-4bca54c0bb50b50fc570061b75812fd44a6d3fc3.zip
Issue #29: use time.UTC instead of time.LoadLocation, since this call may fail on systems without certain config files
Diffstat (limited to 'cookie.go')
-rw-r--r--cookie.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cookie.go b/cookie.go
index bdd5170..29c3c05 100644
--- a/cookie.go
+++ b/cookie.go
@@ -218,7 +218,7 @@ func (c *Cookie) ParseBytes(src []byte) error {
switch {
case bytes.Equal(strCookieExpires, kv.key):
v := unsafeBytesToStr(kv.value)
- exptime, err := time.ParseInLocation(time.RFC1123, v, gmtLocation)
+ exptime, err := time.ParseInLocation(time.RFC1123, v, time.UTC)
if err != nil {
return err
}