Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37851690
en ru br
ALT Linux repositórios
S:2.682-alt1
5.0: 1.72-alt2

Group :: Desenvolvimento/Perl
RPM: perl-Date-ICal

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: Date-ICal-2.678-4_digit_year.patch
Download


From: bitcardbmw@lsmod.de
man Time::Local says
 Whenever possible, use an absolute four digit year instead.
With a detailed explanation about ambiguity of 2-digit years above that.
Please review/test/merge the attached patch (not tested)
Index: Date-ICal-2.678/lib/Date/ICal.pm
===================================================================
--- Date-ICal-2.678.orig/lib/Date/ICal.pm
+++ Date-ICal-2.678/lib/Date/ICal.pm
@@ -334,7 +334,7 @@ sub epoch {
 
         $epoch =
           timegm( $self->sec, $self->min, $self->hour, $self->day,
-          ( $self->month ) - 1, ( $self->year ) - 1900 );
+          ( $self->month ) - 1, $self->year);
     }
 
     return $epoch;
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009