#!/usr/bin/perl
##########################################################################
# $Id: $
##########################################################################

########################################################
#  written by (or more: copied by)
#           Willi Mann <willi@wm1.at>
########################################################

#
## Modified from applyeurodate by debian@onerussian.com to accept dates
## as reported by dpkg:
#2006-09-04 11:17:31 upgrade cvs 1:1.12.13-3 1:1.12.13-4
#
# This script is licensed under the same terms as logwatch, ie under
# permissive X11 license (see /usr/share/doc/logwatch/copyright for more
# details)
#
use Logwatch ':dates';

my $Debug = $ENV{'LOGWATCH_DEBUG'} || 0;

$SearchDate = TimeFilter('%Y-%m-%d %H:%M:%S');

if ( $Debug > 5 ) {
   print STDERR "DEBUG: Inside ApplyEuro2Date...\n";
   print STDERR "DEBUG: Looking For: " . $SearchDate . "\n";
}

while (defined($ThisLine = <STDIN>)) {
   if ($ThisLine =~ m/^$SearchDate /o) {
      print $ThisLine;
   }
}

# vi: shiftwidth=3 syntax=perl tabstop=3 et
