diff --git a/server/datedetector.py b/server/datedetector.py index ad914b21..0b94d20f 100644 --- a/server/datedetector.py +++ b/server/datedetector.py @@ -61,6 +61,12 @@ class DateDetector: template.setRegex("\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2}") template.setPattern("%Y/%m/%d %H:%M:%S") self.__templates.append(template) + # Apache format [31/Oct/2006:09:22:55 -0000] + template = DateStrptime() + template.setName("Day/Month/Year:Hour:Minute:Second") + template.setRegex("\d{2}/\S{3}/\d{4}:\d{2}:\d{2}:\d{2}") + template.setPattern("%d/%b/%Y:%H:%M:%S") + self.__templates.append(template) # TAI64N template = DateTai64n() template.setName("TAI64N")