Blame SOURCES/DateTime-1.04-Add-leap-second-on-December-31-2016.patch
|
|
2ea68e |
From 5375759f62132dc8328baf939e471a32a6a3b3f5 Mon Sep 17 00:00:00 2001
|
|
|
2ea68e |
From: Dave Rolsky <autarch@urth.org>
|
|
|
2ea68e |
Date: Wed, 6 Jul 2016 08:49:37 -0500
|
|
|
2ea68e |
Subject: [PATCH 2/2] Add leap second on December 31, 2016
|
|
|
2ea68e |
MIME-Version: 1.0
|
|
|
2ea68e |
Content-Type: text/plain; charset=UTF-8
|
|
|
2ea68e |
Content-Transfer-Encoding: 8bit
|
|
|
2ea68e |
|
|
|
2ea68e |
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
|
2ea68e |
---
|
|
|
2ea68e |
leaptab.txt | 1 +
|
|
|
2ea68e |
lib/DateTime/LeapSecond.pm | 1 +
|
|
|
2ea68e |
t/19leap-second.t | 1 +
|
|
|
2ea68e |
3 files changed, 3 insertions(+)
|
|
|
2ea68e |
|
|
|
2ea68e |
diff --git a/leaptab.txt b/leaptab.txt
|
|
|
2ea68e |
index 4075fbd..e9fb846 100644
|
|
|
2ea68e |
--- a/leaptab.txt
|
|
|
2ea68e |
+++ b/leaptab.txt
|
|
|
2ea68e |
@@ -24,3 +24,4 @@
|
|
|
2ea68e |
2009 Jan. 1 +1
|
|
|
2ea68e |
2012 Jul. 1 +1
|
|
|
2ea68e |
2015 Jul. 1 +1
|
|
|
2ea68e |
+2017 Jan. 1 +1
|
|
|
2ea68e |
diff --git a/lib/DateTime/LeapSecond.pm b/lib/DateTime/LeapSecond.pm
|
|
|
2ea68e |
index 736f2eb..b936c72 100644
|
|
|
2ea68e |
--- a/lib/DateTime/LeapSecond.pm
|
|
|
2ea68e |
+++ b/lib/DateTime/LeapSecond.pm
|
|
|
2ea68e |
@@ -107,6 +107,7 @@ sub _initialize {
|
|
|
2ea68e |
2009 Jan. 1 +1
|
|
|
2ea68e |
2012 Jun. 1 +1
|
|
|
2ea68e |
2015 Jul. 1 +1
|
|
|
2ea68e |
+ 2017 Jan. 1 +1
|
|
|
2ea68e |
)
|
|
|
2ea68e |
);
|
|
|
2ea68e |
}
|
|
|
2ea68e |
diff --git a/t/19leap-second.t b/t/19leap-second.t
|
|
|
2ea68e |
index 3d9434c..9d3f6eb 100644
|
|
|
2ea68e |
--- a/t/19leap-second.t
|
|
|
2ea68e |
+++ b/t/19leap-second.t
|
|
|
2ea68e |
@@ -1157,6 +1157,7 @@ use DateTime;
|
|
|
2ea68e |
[ 2008, 12, 31 ],
|
|
|
2ea68e |
[ 2012, 6, 30 ],
|
|
|
2ea68e |
[ 2015, 6, 30 ],
|
|
|
2ea68e |
+ [ 2016, 12, 31 ],
|
|
|
2ea68e |
) {
|
|
|
2ea68e |
my $formatted = join '-', map { sprintf( '%02d', $_ ) } @{$date};
|
|
|
2ea68e |
|
|
|
2ea68e |
--
|
|
|
2ea68e |
2.5.5
|
|
|
2ea68e |
|