diff --git a/CHANGELOG b/CHANGELOG index 52d7da11..8ad146ee 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -11,6 +11,7 @@ ver. 0.?.? (2007/??/??) - ??? ---------- - Close opened handlers. Thanks to Yaroslav Halchenko - Fixed "reload" bug. Many many thanks to Yaroslav Halchenko +- Added date format for asctime without year ver. 0.7.8 (2007/03/21) - release candidate ---------- diff --git a/server/datedetector.py b/server/datedetector.py index 6c475c75..6b9986f5 100644 --- a/server/datedetector.py +++ b/server/datedetector.py @@ -56,6 +56,12 @@ class DateDetector: 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) + # asctime without year + template = DateStrptime() + template.setName("Weekday Month Day Hour:Minute:Second") + template.setRegex("\S{3} \S{3}\s{1,2}\d{1,2} \d{2}:\d{2}:\d{2}") + template.setPattern("%a %b %d %H:%M:%S") + self.__templates.append(template) # simple date template = DateStrptime() template.setName("Year/Month/Day Hour:Minute:Second")