From d888718621645453cdb24c2c7edc681cd12fd741 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 9 Jun 2014 11:10:19 +0200 Subject: [PATCH] HttpTime: don't try to parse timezone * Cookies sometimes come with the UTC timezone, or no tz info at all. * No other timezone seems to be used This allows better matching of cookies which would otherwise be kept only as session cookies. --- src/kits/network/libnetapi/HttpTime.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kits/network/libnetapi/HttpTime.cpp b/src/kits/network/libnetapi/HttpTime.cpp index e5f933a63c..c42ab5ff04 100644 --- a/src/kits/network/libnetapi/HttpTime.cpp +++ b/src/kits/network/libnetapi/HttpTime.cpp @@ -14,9 +14,9 @@ static const char* kDateFormats[] = { - "%a, %d %b %Y %H:%M:%S GMT", - "%a, %d-%b-%Y %H:%M:%S GMT", - "%A, %d-%b-%y %H:%M:%S GMT", + "%a, %d %b %Y %H:%M:%S", + "%a, %d-%b-%Y %H:%M:%S", + "%A, %d-%b-%y %H:%M:%S", "%a %d %b %H:%M:%S %Y" };