summaryrefslogtreecommitdiffhomepage
path: root/test/unit.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-04-02 15:50:05 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-04-02 15:50:05 +0300
commit2028f3a04be9836ff0f904a487f05bcff75d528d (patch)
tree5fcbb33b0672051ca138dad281dba950688add79 /test/unit.py
parent5177b085b13be78d216441d21480caf81eb968c2 (diff)
downloadunit-2028f3a04be9836ff0f904a487f05bcff75d528d.tar.gz
unit-2028f3a04be9836ff0f904a487f05bcff75d528d.tar.bz2
Tests: use "%Z" directive while parsing Date header.
Diffstat (limited to '')
-rw-r--r--test/unit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit.py b/test/unit.py
index cdf9ff62..e522e2da 100644
--- a/test/unit.py
+++ b/test/unit.py
@@ -335,7 +335,7 @@ class TestUnitApplicationProto(TestUnitControl):
return time.mktime(time.gmtime())
def date_to_sec_epoch(self, date):
- return time.mktime(time.strptime(date, '%a, %d %b %Y %H:%M:%S GMT'))
+ return time.mktime(time.strptime(date, '%a, %d %b %Y %H:%M:%S %Z'))
def search_in_log(self, pattern):
with open(self.testdir + '/unit.log', 'r') as f: