summaryrefslogtreecommitdiff
path: root/dev-perl/Date-ICal/files/Date-ICal-2.678-timegm-year.patch
blob: a133c7ec7b117ac081c1e02aea1a84d28a836d26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 9d7e303d13541e9546b303a6eb5508bd23e204a5 Mon Sep 17 00:00:00 2001
From: Kent Fredric <kentnl@gentoo.org>
Date: Fri, 24 Jul 2020 18:04:44 +1200
Subject: Always pass full year to timegm()

Bug: https://rt.cpan.org/Ticket/Display.html?id=124548
Bug: https://bugs.gentoo.org/707790
---
 lib/Date/ICal.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Date/ICal.pm b/lib/Date/ICal.pm
index 39844af..fbfdbaf 100755
--- a/lib/Date/ICal.pm
+++ b/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;
-- 
2.27.0