From 2028f3a04be9836ff0f904a487f05bcff75d528d Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Mon, 2 Apr 2018 15:50:05 +0300 Subject: Tests: use "%Z" directive while parsing Date header. --- test/unit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unit.py') 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: -- cgit