mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
BF: Fixing a name for MySQL date pattern which misplaced Year (should not effect functionality) Closes #312
This commit is contained in:
parent
547c123cfb
commit
c0456fd835
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ class DateDetector:
|
|||
self._appendTemplate(template)
|
||||
# MySQL: 130322 11:46:11
|
||||
template = DateStrptime()
|
||||
template.setName("MonthDayYear Hour:Minute:Second")
|
||||
template.setName("YearMonthDay Hour:Minute:Second")
|
||||
template.setRegex("^\d{2}\d{2}\d{2} +\d{1,2}:\d{2}:\d{2}")
|
||||
template.setPattern("%y%m%d %H:%M:%S")
|
||||
self._appendTemplate(template)
|
||||
|
|
|
|||
Loading…
Reference in a new issue