Tests: use "%Z" directive while parsing Date header.

This commit is contained in:
Andrey Zelenkov
2018-04-02 15:50:05 +03:00
parent 5177b085b1
commit 2028f3a04b
4 changed files with 19 additions and 7 deletions

View File

@@ -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: