diff --git a/server/datedetector.py b/server/datedetector.py index 951aba6f4..9e7fbb360 100644 --- a/server/datedetector.py +++ b/server/datedetector.py @@ -51,7 +51,7 @@ class DateDetector: # asctime template = DateStrptime() template.setName("Weekday Month Day Hour:Minute:Second Year") - template.setRegex("\S{3} \S{3} \d{2} \d{2}:\d{2}:\d{2} \d{4}") + template.setRegex("\S{3} \S{3}\s{1,2}\d{1,2} \d{2}:\d{2}:\d{2} \d{4}") template.setPattern("%a %b %d %H:%M:%S %Y") self.__templates.append(template) # simple date