If you are familiar with using patch, or diff files in general,
--- archive2.pl.orig 2000/01/07 11:00:49
+++ archive2.pl.new 2000/05/15 00:55:00
@@ -152,7 +152,11 @@
local($junk, $addr, $dow, $moy, $dom, $time, $year, @rest);
($junk, $addr, $dow, $moy, $dom, $time, $year, @rest) = split(/\s+/,$from);
- &open_archive($FH, $year % 100, $MoY{$moy}, $dom);
+ if ($year =~ /\d{4}/) {
+ &open_archive($FH, $year -1900, $MoY{$moy}, $dom);
+ } else {
+ &open_archive($FH, $year % 100, $MoY{$moy}, $dom);
+ }
}
sub open_archive {
Basically, the above diff file says to go to line 152 of archive2.pl and
turn the next 7 lines into the following 11 lines. A minus indicates a
line to be removed, and a plus indicates lines to be added. Lines without
a plus or minus are to be used to verify your current position within the
file, and are not to be changed.
Dan Liston
Robert Covell wrote:
>
> I read in the FAQ "1.8 - Is Majordomo Y2K (Year 2000) compliant?" that the
> archive.pl is not Y2K compliant. We are archiving and everything using
> archive2.pl and things are showing up as 1901. From my research I have not
> found a way to fix this. Does anyone know what can be done, or how to fix
> it?
>
> -Bob
References:
|
|