Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
perlPackages.TimeDate: fix tests that fail as of 2020
  • Loading branch information
dtzWill authored and FRidh committed Jan 3, 2020
1 parent 68b6fea commit 336155c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkgs/development/perl-modules/timedate-2020.patch
@@ -0,0 +1,12 @@
Index: TimeDate-2.30/t/getdate.t
===================================================================
--- TimeDate-2.30.orig/t/getdate.t
+++ TimeDate-2.30/t/getdate.t
@@ -156,7 +156,7 @@ Jul 22 10:00:00 UTC 2002 ;102733200
!;

require Time::Local;
-my $offset = Time::Local::timegm(0,0,0,1,0,70);
+my $offset = Time::Local::timegm(0,0,0,1,0,1970);

@data = split(/\n/, $data);
2 changes: 2 additions & 0 deletions pkgs/top-level/perl-packages.nix
Expand Up @@ -19541,6 +19541,8 @@ let
url = mirror://cpan/authors/id/G/GB/GBARR/TimeDate-2.30.tar.gz;
sha256 = "11lf54akr9nbivqkjrhvkmfdgkbhw85sq0q4mak56n6bf542bgbm";
};
# https://rt.cpan.org/Public/Bug/Display.html?id=124509
patches = [ ../development/perl-modules/timedate-2020.patch ];
};

TimeDuration = buildPerlPackage {
Expand Down

0 comments on commit 336155c

Please sign in to comment.