From fd4c151353c27f9c52c0eae300a3e5a5dbc7e9da Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 10 Sep 2009 11:15:38 -0400 Subject: [PATCH] BF: be able to detect time for VNC recording only 2 letters of year (closes: #537610) --- server/datedetector.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/datedetector.py b/server/datedetector.py index f0cecede..09567656 100644 --- a/server/datedetector.py +++ b/server/datedetector.py @@ -74,6 +74,13 @@ class DateDetector: template.setRegex("\d{2}/\d{2}/\d{4} \d{2}:\d{2}:\d{2}") template.setPattern("%d/%m/%Y %H:%M:%S") self.__templates.append(template) + # previous one but with year given by 2 digits + # (See http://bugs.debian.org/537610) + template = DateStrptime() + template.setName("Day/Month/Year Hour:Minute:Second") + template.setRegex("\d{2}/\d{2}/\d{2} \d{2}:\d{2}:\d{2}") + template.setPattern("%d/%m/%y %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")