!12 [sync] PR-11: Remove limitation from Date::Parse
From: @openeuler-sync-bot Reviewed-by: @licihua Signed-off-by: @licihua
This commit is contained in:
commit
90731cd07a
30
Remove-limitation-from-Date-Parse.patch
Normal file
30
Remove-limitation-from-Date-Parse.patch
Normal file
@ -0,0 +1,30 @@
|
||||
From 21b0250cdbf98ad01f6d5a447d99f10adaad9ac7 Mon Sep 17 00:00:00 2001
|
||||
From: Nicolas R <cpan@atoomic.org>
|
||||
Date: Thu, 5 Aug 2021 16:13:07 -0600
|
||||
Subject: [PATCH] Remove limitation from Date::Parse
|
||||
|
||||
Fix #43
|
||||
---
|
||||
lib/Date/Parse.pm | 6 ------
|
||||
1 files changed, 6 deletions(-)
|
||||
|
||||
diff --git a/lib/Date/Parse.pm b/lib/Date/Parse.pm
|
||||
index afdcc1c..a5dc0fb 100644
|
||||
--- a/lib/Date/Parse.pm
|
||||
+++ b/lib/Date/Parse.pm
|
||||
@@ -354,12 +354,6 @@ Below is a sample list of dates that are known to be parsable with Date::Parse
|
||||
1999 10:02:18 "GMT"
|
||||
16 Nov 94 22:28:20 PST
|
||||
|
||||
-=head1 LIMITATION
|
||||
-
|
||||
-Date::Parse uses L<Time::Local> internally, so is limited to only parsing dates
|
||||
-which result in valid values for Time::Local::timelocal. This generally means dates
|
||||
-between 1901-12-17 00:00:00 GMT and 2038-01-16 23:59:59 GMT
|
||||
-
|
||||
=head1 BUGS
|
||||
|
||||
When both the month and the date are specified in the date as numbers
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
Name: perl-TimeDate
|
||||
Version: 2.33
|
||||
Epoch: 1
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Perl5 TimeDate distribution
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/TimeDate
|
||||
@ -14,6 +14,8 @@ BuildRequires: perl(vars) perl(warnings)
|
||||
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
||||
Patch6000: Remove-limitation-from-Date-Parse.patch
|
||||
|
||||
%description
|
||||
This is the perl5 TimeDate distribution. It requires perl version 5.003 or later
|
||||
This distribution replaces my earlier GetDate distribution, which was
|
||||
@ -52,6 +54,12 @@ make test
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Oct 20 2022 xujing <xujing125@huawei.com> - 1:2.33-3
|
||||
- Type:bugs
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: Remove limitation from Date::Parse
|
||||
|
||||
* Tue Sep 08 2020 liuweibo <liuweibo10@huawei.com> - 1:2.33-2
|
||||
- Type:bugs
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user