Hello community,
here is the log from the commit of package perl-TimeDate for openSUSE:Factory
checked in at Tue Apr 20 02:22:18 CEST 2010.
--------
--- perl-TimeDate/perl-TimeDate.changes 2010-01-09 20:27:53.000000000 +0100
+++ /mounts/work_src_done/STABLE/perl-TimeDate/perl-TimeDate.changes 2010-04-19 13:55:27.000000000 +0200
@@ -1,0 +2,8 @@
+Mon Apr 19 13:51:59 CEST 2010 - dmueller@suse.de
+
+- update to 1.20:
+ * Typo => s/timezome/timezone/ [yanick]
+ * RT#52387 Fix %s formating to use timelocal when no timezone is given
+ * RT#51664 fix str2time('16 Oct 09') to not give a negative result
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
TimeDate-1.19.tar.gz
New:
----
TimeDate-1.20.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-TimeDate.spec ++++++
--- /var/tmp/diff_new_pack.pWji0C/_old 2010-04-20 02:21:09.000000000 +0200
+++ /var/tmp/diff_new_pack.pWji0C/_new 2010-04-20 02:21:09.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package perl-TimeDate (Version 1.19)
+# spec file for package perl-TimeDate (Version 1.20)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -21,7 +21,7 @@
Name: perl-TimeDate
%define cpan_name TimeDate
Summary: Parse date strings into time values
-Version: 1.19
+Version: 1.20
Release: 1
License: Artistic License ..
Group: Development/Libraries/Perl
++++++ TimeDate-1.19.tar.gz -> TimeDate-1.20.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TimeDate-1.19/ChangeLog new/TimeDate-1.20/ChangeLog
--- old/TimeDate-1.19/ChangeLog 2009-09-25 21:00:03.000000000 +0200
+++ new/TimeDate-1.20/ChangeLog 2009-12-12 13:38:19.000000000 +0100
@@ -1,3 +1,9 @@
+1.20 -- Sat Dec 12 06:38:14 CST 2009
+
+ * Typo => s/timezome/timezone/ [yanick]
+ * RT#52387 Fix %s formating to use timelocal when no timezone is given
+ * RT#51664 fix str2time('16 Oct 09') to not give a negative result
+
1.19 -- Fri Sep 25 13:59:41 CDT 2009
* Replace Date::Language::Hungarian with version from CPAN by Lee Goddard
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TimeDate-1.19/MANIFEST new/TimeDate-1.20/MANIFEST
--- old/TimeDate-1.19/MANIFEST 2009-09-25 21:01:06.000000000 +0200
+++ new/TimeDate-1.20/MANIFEST 2009-12-12 13:38:54.000000000 +0100
@@ -36,7 +36,7 @@
lib/Date/Parse.pm
lib/Time/Zone.pm
Makefile.PL
-MANIFEST
+MANIFEST This list of files
README
t/cpanrt.t
t/date.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TimeDate-1.19/META.yml new/TimeDate-1.20/META.yml
--- old/TimeDate-1.19/META.yml 2009-09-25 21:01:06.000000000 +0200
+++ new/TimeDate-1.20/META.yml 2009-12-12 13:38:54.000000000 +0100
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: TimeDate
-version: 1.19
+version: 1.20
abstract: ~
author:
- Graham Barr
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TimeDate-1.19/Makefile.PL new/TimeDate-1.20/Makefile.PL
--- old/TimeDate-1.19/Makefile.PL 2009-09-25 20:59:31.000000000 +0200
+++ new/TimeDate-1.20/Makefile.PL 2009-12-12 13:36:15.000000000 +0100
@@ -9,7 +9,7 @@
WriteMakefile(
NAME => 'TimeDate',
AUTHOR => 'Graham Barr ',
- VERSION => '1.19',
+ VERSION => '1.20',
(eval { ExtUtils::MakeMaker->VERSION(6.21) } ? (LICENSE => 'perl') : ()),
( eval { ExtUtils::MakeMaker->VERSION(6.46) } ? (
META_MERGE => {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TimeDate-1.19/SIGNATURE new/TimeDate-1.20/SIGNATURE
--- old/TimeDate-1.19/SIGNATURE 2009-09-25 21:01:11.000000000 +0200
+++ new/TimeDate-1.20/SIGNATURE 2009-12-12 13:38:58.000000000 +0100
@@ -14,12 +14,12 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-SHA1 1cfbd5694da3169c17b3648846c9f5e7223f4d26 ChangeLog
-SHA1 205981f550ad232f94d59d8eb79c5e6ecbe8f48d MANIFEST
-SHA1 8e0c2e200e666305e860ca20930ddf7f285825f3 META.yml
-SHA1 6f6d8f3971192224df63d9864dc341078c15286d Makefile.PL
+SHA1 036da21b212a902ecb9d195565bbcd4c51bccecc ChangeLog
+SHA1 efb2a90cd095d97ec148e6263fb921f560cfffb5 MANIFEST
+SHA1 4efed966d43e74a6f53ef2bcdbfc4de05b92035f META.yml
+SHA1 e111caf8b7da35935fa7004a17045cab55278445 Makefile.PL
SHA1 80cff3b1f65e7df95eaa1a992b688c2c5e1d2b6e README
-SHA1 6823bd5e2e3cac12b7b9870d9840f4606f3eb422 lib/Date/Format.pm
+SHA1 5ca10e18e888daf0883de553219f42ca2422763f lib/Date/Format.pm
SHA1 08342e72298e839f21236dff7555f2505f928d32 lib/Date/Language.pm
SHA1 50703aeade60a04398517416d30a2d8918c95578 lib/Date/Language/Afar.pm
SHA1 f9450ca0047510a4102c32cc4e20a435cdd85b31 lib/Date/Language/Amharic.pm
@@ -53,17 +53,17 @@
SHA1 20fc6beb32657ca147719f713ff816bbb696da20 lib/Date/Language/TigrinyaEritrean.pm
SHA1 30f77a43a000f2ce3d22b1b633261a20289025aa lib/Date/Language/TigrinyaEthiopian.pm
SHA1 54288741c52b09ee92b0487848df74a08cdc3b9e lib/Date/Language/Turkish.pm
-SHA1 dbcc4a151b1c558b32ed61fa7ee98e0fb47b9d7f lib/Date/Parse.pm
+SHA1 b10ec48bd01b73638e4c6dce3f554e4c77267b6c lib/Date/Parse.pm
SHA1 394c7d372c25107ba5151ceca44c0599188907c7 lib/Time/Zone.pm
-SHA1 62465108c0d5fc14e08ae41e2f963c4d9074b1d6 t/cpanrt.t
+SHA1 ee65cf5b634d907c4cc2d414e49c06175461e6ac t/cpanrt.t
SHA1 7b16580497a96a4bc551b87b8b97ec89331e81f8 t/date.t
SHA1 bf6f4a7c599485ab11779c99fc821378e547d26d t/format.t
SHA1 acef4dd152cd391a3e7a7945c8405a50d965f335 t/getdate.t
SHA1 501dcb487e33f6b2d4577ef2e6e5f67f038d3c04 t/lang.t
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.9 (Darwin)
+Version: GnuPG v1.4.10 (Darwin)
-iEYEARECAAYFAkq9E3QACgkQR0BL4gbYw3QQYACfQg56MxwRuw6XPWOfpumki+CN
-CWAAn1WM3GKmUyJdxf9g95yvZl552Tg0
-=2lbe
+iEYEARECAAYFAksjjt4ACgkQR0BL4gbYw3RCKgCePxf2QrH/3uvOofKewESV0zto
+t+sAnA5dGEi945ziAfAkLyFUhIMWnm7U
+=GqfE
-----END PGP SIGNATURE-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TimeDate-1.19/lib/Date/Format.pm new/TimeDate-1.20/lib/Date/Format.pm
--- old/TimeDate-1.19/lib/Date/Format.pm 2009-09-19 18:04:02.000000000 +0200
+++ new/TimeDate-1.20/lib/Date/Format.pm 2009-12-12 13:30:06.000000000 +0100
@@ -8,7 +8,7 @@
use vars qw(@EXPORT @ISA $VERSION);
require Exporter;
-$VERSION = "2.23";
+$VERSION = "2.24";
@ISA = qw(Exporter);
@EXPORT = qw(time2str strftime ctime asctime);
@@ -215,7 +215,7 @@
sub format_M { sprintf("%02d",$_[0]->[1]) }
sub format_q { sprintf("%01d",int($_[0]->[4] / 3) + 1) }
sub format_s {
- $epoch = timegm(@{$_[0]}[0..5])
+ $epoch = timelocal(@{$_[0]}[0..5])
unless defined $epoch;
sprintf("%d",$epoch)
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TimeDate-1.19/lib/Date/Parse.pm new/TimeDate-1.20/lib/Date/Parse.pm
--- old/TimeDate-1.19/lib/Date/Parse.pm 2009-09-19 18:04:02.000000000 +0200
+++ new/TimeDate-1.20/lib/Date/Parse.pm 2009-12-12 13:35:02.000000000 +0100
@@ -15,7 +15,7 @@
@ISA = qw(Exporter);
@EXPORT = qw(&strtotime &str2time &strptime);
-$VERSION = "2.29";
+$VERSION = "2.30";
my %month = (
january => 0,
@@ -261,7 +261,7 @@
if (defined $zone) {
$result = eval {
local $SIG{__DIE__} = sub {}; # Ick!
- timegm($ss,$mm,$hh,$day,$month,$year+1900);
+ timegm($ss,$mm,$hh,$day,$month,$year);
};
return undef
if !defined $result
@@ -273,7 +273,7 @@
else {
$result = eval {
local $SIG{__DIE__} = sub {}; # Ick!
- timelocal($ss,$mm,$hh,$day,$month,$year+1900);
+ timelocal($ss,$mm,$hh,$day,$month,$year);
};
return undef
if !defined $result
@@ -312,7 +312,7 @@
C<str2time> parses C<DATE> and returns a unix time value, or undef upon failure.
C<ZONE>, if given, specifies the timezone to assume when parsing if the
-date string does not specify a timezome.
+date string does not specify a timezone.
=item strptime(DATE [, ZONE])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TimeDate-1.19/t/cpanrt.t new/TimeDate-1.20/t/cpanrt.t
--- old/TimeDate-1.19/t/cpanrt.t 2009-09-19 18:04:02.000000000 +0200
+++ new/TimeDate-1.20/t/cpanrt.t 2009-12-12 13:34:16.000000000 +0100
@@ -1,7 +1,7 @@
-use Date::Format qw(time2str);
-use Date::Parse qw(strptime);
+use Date::Format qw(time2str strftime);
+use Date::Parse qw(strptime str2time);
-print "1..5\n";
+print "1..8\n";
my $i = 1;
@@ -40,4 +40,16 @@
print "ok ", $i++, "\n";
}
+{ # [rt.cpan.org #52387] seconds since the Epoch, UCT
+ my $time = time;
+ my @lt = localtime(time);
+ print "not " unless strftime("%s", @lt) eq $time;
+ print "ok ", $i++, "\n";
+ print "not " unless time2str("%s",$time) eq $time;
+ print "ok ", $i++, "\n";
+}
+{ # [rt.cpan.org #51664] Change in str2time behaviour between 1.16 and 1.19
+ print "not " if str2time('16 Oct 09') < 0;
+ print "ok ", $i++, "\n";
+}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org