8
0

Compare commits

...

9 Commits

Author SHA256 Message Date
df51f70aa9 Accepting request 1237563 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/1237563
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Time-modules?expand=0&rev=24
2025-01-14 15:22:45 +00:00
86edae8019 Accepting request 1225590 from home:bmwiedemann:branches:devel:languages:perl
Add fixtest.patch to fix tests after 2033 (boo#1102840)

OBS-URL: https://build.opensuse.org/request/show/1225590
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Time-modules?expand=0&rev=21
2025-01-13 21:42:52 +00:00
b60f553a02 Accepting request 635694 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/635694
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Time-modules?expand=0&rev=23
2018-09-18 09:43:19 +00:00
Stephan Kulow
20fa6067a0 Accepting request 140156 from devel:languages:perl
- explicit buildequire timezone for the test suite

OBS-URL: https://build.opensuse.org/request/show/140156
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Time-modules?expand=0&rev=19
2012-11-05 14:01:27 +00:00
Stephan Kulow
5d307b9d93 Accepting request 121225 from devel:languages:perl
license update: SUSE-Permissive
Choose a license from the list linked at license.opensuse.org (forwarded request 121221 from babelworx)

OBS-URL: https://build.opensuse.org/request/show/121225
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Time-modules?expand=0&rev=17
2012-05-21 05:29:39 +00:00
Sascha Peilicke
efb1f2d547 Autobuild autoformatter for 70545
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Time-modules?expand=0&rev=15
2011-05-18 15:18:47 +00:00
Sascha Peilicke
8e35018dcc Accepting request 70545 from devel:languages:perl
- update to 2011.0517
	Bugfix from Sophie Hamilton: call tzset() when changing timezones.
	Bugfix: bail out of tests cleanly when tzset doesn't work.
- license changed

- update to 2011.0505
	Bugfix: make sure $ampm is defined so no undefined string warnings
	are issued.
	Honor the GMT flag when parsing time specs.  Patch from
	kris at shannon.id.au.
	Bugfix: RT#31477 noon & midnight would match in the middle of strings.
	Added %v conversion for Time::CTime
	Added tests to disprove invalid bug reports.

OBS-URL: https://build.opensuse.org/request/show/70545
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Time-modules?expand=0&rev=14
2011-05-18 15:18:39 +00:00
Lars Vogdt
a9a775a142 Autobuild autoformatter for 54681
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Time-modules?expand=0&rev=12
2010-12-05 21:25:36 +00:00
Lars Vogdt
ced0aadb45 Accepting request 54681 from devel:languages:perl
Accepted submit request 54681 from user coolo

OBS-URL: https://build.opensuse.org/request/show/54681
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Time-modules?expand=0&rev=11
2010-12-05 21:25:30 +00:00
3 changed files with 38 additions and 1 deletions

30
fixtest.patch Normal file
View File

@@ -0,0 +1,30 @@
Author: Bernhard M. Wiedemann <bwiedemann suse.de>
Date: 2018-10-31
Make tests pass in the future
Without this patch, 33 tests failed in 2033 by misinterpreting 2-digit years
e.g.
two digit year '94' expanded into 2094
jd(2094, 11, 06) = 2486188
before 2486188 08 49 37
after rs 2486188 8 49 37
jd_secondsgm(2486188, 8, 49, 37) = 3939871777
adjusting secs for GMT: 0
returning 3939871777.
not ok 273 # Sunday, 06-Nov-94 08:49:37 GMT
Expected(784111777): Sun Nov 6 0:49:37 1994 PST
Got(3939871777): Sat Nov 6 0:49:37 2094 PST (11/06 08:49 AM GMT)
Index: Time-modules-2013.0912/t/datetime.t
===================================================================
--- Time-modules-2013.0912.orig/t/datetime.t
+++ Time-modules-2013.0912/t/datetime.t
@@ -437,6 +437,7 @@ while (@sdt) {
$ar = shift(@sdt);
$toparse = shift(@$ar);
%opts = @$ar;
+ $opts{NOW} //= 1000000000;
if (defined $opts{NOW}) {
$opts{NOW} -= $epoch;
}

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Nov 14 20:43:57 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
- Add fixtest.patch to fix tests after 2033 (boo#1102840)
-------------------------------------------------------------------
Wed Sep 12 13:34:03 UTC 2018 - pmonrealgonzalez@suse.com

View File

@@ -24,6 +24,7 @@ License: SUSE-Permissive
Group: Development/Libraries/Perl
Url: https://metacpan.org/release/MUIR/Time-modules-2013.0912
Source: https://www.cpan.org/modules/by-module/Time/Time-modules-%{version}.tar.gz
Patch0: fixtest.patch
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires}
@@ -34,13 +35,14 @@ BuildRequires: timezone
Perl modules providing various time functions.
%prep
%setup -q -n Time-modules-%{version}
%autosetup -p1 -n Time-modules-%{version}
%build
perl Makefile.PL
make %{?_smp_mflags}
%check
#cd ~/rpmbuild/BUILD/Time-modules-2013.0912/ && PERL5LIB=lib perl t/datetime.t | tee /tmp/datetime.out ; exit 1
make %{?_smp_mflags} test
%install