SF.net SVN: logwatch:[272] trunk/scripts/shared/applystddate

[email protected] Wed, 24 Dec 2014 11:32:01 +0000
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Revision: 272
          http://sourceforge.net/p/logwatch/code/272
Author:   stefjakobs
Date:     2014-12-24 11:31:59 +0000 (Wed, 24 Dec 2014)
Log Message:
-----------
Bug#34: fix off by one failure in ISO date handling

Modified Paths:
--------------
    trunk/scripts/shared/applystddate

Modified: trunk/scripts/shared/applystddate
===================================================================
--- trunk/scripts/shared/applystddate	2014-12-24 09:56:57 UTC (rev 271)
+++ trunk/scripts/shared/applystddate	2014-12-24 11:31:59 UTC (rev 272)
@@ -41,7 +41,7 @@
       print $ThisLine;
    } elsif ($ThisLine =~ /^$SearchDateRsyslog /o) {
       $ThisLine =~ s/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})\.[0-9]+[+-][0-9]{2}:[0-9]{2} //o;
-      print POSIX::strftime("%b %e %H:%M:%S", $6, $5, $4, $3+1, $2-1, $1 - 1900) . " " . $ThisLine;
+      print POSIX::strftime("%b %e %H:%M:%S", $6, $5, $4, $3, $2-1, $1 - 1900) . " " . $ThisLine;
    } elsif ($ThisLine =~ m/(Mon|Tue|Wed|Thu|Fri|Sat|Sun) $SearchDate \d{4}/o) {
       print $ThisLine;
    }

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net