r64465 - in /trunk/libdatetime-format-http-perl: Changes MANIFEST META.yml Makefile.PL debian/changelog debian/compat debian/control debian/copyright debian/rules lib/DateTime/Format/HTTP.pm t/date.t

ansgar at users.alioth.debian.org ansgar at users.alioth.debian.org
Mon Nov 1 11:05:22 UTC 2010


Author: ansgar
Date: Mon Nov  1 11:04:19 2010
New Revision: 64465

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=64465
Log:
* New upstream release.
* Use debhelper compat level 8.
* debian/copyright: Refer to "Debian systems" instead of "Debian GNU/Linux
  systems"; refer to /usr/share/common-licenses/GPL-1.
* Bump Standards-Version to 3.9.1.

Modified:
    trunk/libdatetime-format-http-perl/Changes
    trunk/libdatetime-format-http-perl/MANIFEST
    trunk/libdatetime-format-http-perl/META.yml
    trunk/libdatetime-format-http-perl/Makefile.PL
    trunk/libdatetime-format-http-perl/debian/changelog
    trunk/libdatetime-format-http-perl/debian/compat
    trunk/libdatetime-format-http-perl/debian/control
    trunk/libdatetime-format-http-perl/debian/copyright
    trunk/libdatetime-format-http-perl/debian/rules
    trunk/libdatetime-format-http-perl/lib/DateTime/Format/HTTP.pm
    trunk/libdatetime-format-http-perl/t/date.t

Modified: trunk/libdatetime-format-http-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-http-perl/Changes?rev=64465&op=diff
==============================================================================
--- trunk/libdatetime-format-http-perl/Changes (original)
+++ trunk/libdatetime-format-http-perl/Changes Mon Nov  1 11:04:19 2010
@@ -1,3 +1,8 @@
+0.40  2010-10-31
+
+- format_isoz now actually changes the time zone. Fixes RT 62332 (DOUGDUDE)
+
+
 0.39  2010-07-03
 
 - No code changes from previous versions.

Modified: trunk/libdatetime-format-http-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-http-perl/MANIFEST?rev=64465&op=diff
==============================================================================
--- trunk/libdatetime-format-http-perl/MANIFEST (original)
+++ trunk/libdatetime-format-http-perl/MANIFEST Mon Nov  1 11:04:19 2010
@@ -3,12 +3,12 @@
 CREDITS
 lib/DateTime/Format/HTTP.pm
 LICENSE
-Makefile.PL
 MANIFEST			This list of files
-META.yml
-README
 t/basic.t
 t/date.t
 t/pod-coverage.t
 t/pod.t
 t/time2str.t
+Makefile.PL
+README
+META.yml

Modified: trunk/libdatetime-format-http-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-http-perl/META.yml?rev=64465&op=diff
==============================================================================
--- trunk/libdatetime-format-http-perl/META.yml (original)
+++ trunk/libdatetime-format-http-perl/META.yml Mon Nov  1 11:04:19 2010
@@ -4,7 +4,7 @@
   - 'Christiaan Kras <ckras at cpan.org>'
 configure_requires:
   Module::Build: 0.36
-generated_by: 'Module::Build version 0.3607'
+generated_by: 'Module::Build version 0.3603'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -13,11 +13,11 @@
 provides:
   DateTime::Format::HTTP:
     file: lib/DateTime/Format/HTTP.pm
-    version: 0.39
+    version: 0.40
 requires:
   DateTime: 0.17
   HTTP::Date: 1.44
   Test::More: 0.47
 resources:
   license: http://dev.perl.org/licenses/
-version: 0.39
+version: 0.40

Modified: trunk/libdatetime-format-http-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-http-perl/Makefile.PL?rev=64465&op=diff
==============================================================================
--- trunk/libdatetime-format-http-perl/Makefile.PL (original)
+++ trunk/libdatetime-format-http-perl/Makefile.PL Mon Nov  1 11:04:19 2010
@@ -1,16 +1,16 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.3607
+# Note: this file was auto-generated by Module::Build::Compat version 0.3603
 use ExtUtils::MakeMaker;
 WriteMakefile
 (
-  'NAME' => 'DateTime::Format::HTTP',
-  'VERSION_FROM' => 'lib/DateTime/Format/HTTP.pm',
-  'PREREQ_PM' => {
-                   'DateTime' => '0.17',
-                   'HTTP::Date' => '1.44',
-                   'Test::More' => '0.47'
-                 },
-  'INSTALLDIRS' => 'site',
-  'EXE_FILES' => [],
-  'PL_FILES' => {}
-)
+          'NAME' => 'DateTime::Format::HTTP',
+          'VERSION_FROM' => 'lib/DateTime/Format/HTTP.pm',
+          'PREREQ_PM' => {
+                           'DateTime' => '0.17',
+                           'HTTP::Date' => '1.44',
+                           'Test::More' => '0.47'
+                         },
+          'INSTALLDIRS' => 'site',
+          'EXE_FILES' => [],
+          'PL_FILES' => {}
+        )
 ;

Modified: trunk/libdatetime-format-http-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-http-perl/debian/changelog?rev=64465&op=diff
==============================================================================
--- trunk/libdatetime-format-http-perl/debian/changelog (original)
+++ trunk/libdatetime-format-http-perl/debian/changelog Mon Nov  1 11:04:19 2010
@@ -1,8 +1,13 @@
-libdatetime-format-http-perl (0.39-2) UNRELEASED; urgency=low
+libdatetime-format-http-perl (0.40-1) unstable; urgency=low
 
+  * New upstream release.
+  * Use debhelper compat level 8.
+  * debian/copyright: Refer to "Debian systems" instead of "Debian GNU/Linux
+    systems"; refer to /usr/share/common-licenses/GPL-1.
+  * Bump Standards-Version to 3.9.1.
   * Update my email address.
 
- -- Ansgar Burchardt <ansgar at debian.org>  Mon, 01 Nov 2010 11:16:35 +0100
+ -- Ansgar Burchardt <ansgar at debian.org>  Mon, 01 Nov 2010 11:53:51 +0100
 
 libdatetime-format-http-perl (0.39-1) unstable; urgency=low
 

Modified: trunk/libdatetime-format-http-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-http-perl/debian/compat?rev=64465&op=diff
==============================================================================
--- trunk/libdatetime-format-http-perl/debian/compat (original)
+++ trunk/libdatetime-format-http-perl/debian/compat Mon Nov  1 11:04:19 2010
@@ -1,1 +1,1 @@
-7
+8

Modified: trunk/libdatetime-format-http-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-http-perl/debian/control?rev=64465&op=diff
==============================================================================
--- trunk/libdatetime-format-http-perl/debian/control (original)
+++ trunk/libdatetime-format-http-perl/debian/control Mon Nov  1 11:04:19 2010
@@ -1,13 +1,13 @@
 Source: libdatetime-format-http-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 7.3.7~), libmodule-build-perl (>= 0.360000)
+Build-Depends: debhelper (>= 8), libmodule-build-perl (>= 0.360000)
 Build-Depends-Indep: perl, libdatetime-perl, libwww-perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Ryan Niebur <ryan at debian.org>,
  Ernesto Hernández-Novich (USB) <emhn at usb.ve>,
  Ansgar Burchardt <ansgar at debian.org>
-Standards-Version: 3.9.0
+Standards-Version: 3.9.1
 Homepage: http://search.cpan.org/dist/DateTime-Format-HTTP/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libdatetime-format-http-perl/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libdatetime-format-http-perl/

Modified: trunk/libdatetime-format-http-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-http-perl/debian/copyright?rev=64465&op=diff
==============================================================================
--- trunk/libdatetime-format-http-perl/debian/copyright (original)
+++ trunk/libdatetime-format-http-perl/debian/copyright Mon Nov  1 11:04:19 2010
@@ -19,8 +19,8 @@
  This program is free software; you can redistribute it and/or modify
  it under the terms of the Artistic License, which comes with Perl.
  .
- On Debian GNU/Linux systems, the complete text of the Artistic License
- can be found in `/usr/share/common-licenses/Artistic'
+ On Debian systems, the complete text of the Artistic License can be
+ found in `/usr/share/common-licenses/Artistic'.
 
 License: GPL-1+
  This program is free software; you can redistribute it and/or modify
@@ -28,5 +28,5 @@
  the Free Software Foundation; either version 1, or (at your option)
  any later version.
  .
- On Debian GNU/Linux systems, the complete text of the GNU General
- Public License can be found in `/usr/share/common-licenses/GPL'
+ On Debian systems, the complete text of version 1 of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-1'.

Modified: trunk/libdatetime-format-http-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-http-perl/debian/rules?rev=64465&op=diff
==============================================================================
--- trunk/libdatetime-format-http-perl/debian/rules (original)
+++ trunk/libdatetime-format-http-perl/debian/rules Mon Nov  1 11:04:19 2010
@@ -1,4 +1,4 @@
 #!/usr/bin/make -f
 
 %:
-	dh $@ --buildsystem=perl_build
+	dh $@

Modified: trunk/libdatetime-format-http-perl/lib/DateTime/Format/HTTP.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-http-perl/lib/DateTime/Format/HTTP.pm?rev=64465&op=diff
==============================================================================
--- trunk/libdatetime-format-http-perl/lib/DateTime/Format/HTTP.pm (original)
+++ trunk/libdatetime-format-http-perl/lib/DateTime/Format/HTTP.pm Mon Nov  1 11:04:19 2010
@@ -3,7 +3,7 @@
 use warnings;
 use vars qw( $VERSION );
 
-$VERSION = '0.39';
+$VERSION = '0.40';
 
 use DateTime;
 use HTTP::Date qw();
@@ -91,7 +91,7 @@
 {
     my ($self, $dt) = @_;
     $dt = DateTime->now unless defined $dt;
-    $dt->clone->set_time_zone( 'UTC' );
+    $dt = $dt->clone->set_time_zone( 'UTC' );
     sprintf("%04d-%02d-%02d %02d:%02d:%02dZ",
 	$dt->year, $dt->month, $dt->day,
 	$dt->hour, $dt->min, $dt->sec

Modified: trunk/libdatetime-format-http-perl/t/date.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-http-perl/t/date.t?rev=64465&op=diff
==============================================================================
--- trunk/libdatetime-format-http-perl/t/date.t (original)
+++ trunk/libdatetime-format-http-perl/t/date.t Mon Nov  1 11:04:19 2010
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 use strict;
 use lib 'inc';
-use Test::More tests => 116;
+use Test::More tests => 118;
 use vars qw( $class );
 
 BEGIN {
@@ -171,3 +171,25 @@
 for ($az, $bz) {
   like( $_ => qr/^\d{4}-\d\d-\d\d \d\d:\d\d:\d\dZ$/, "time2isoz($_)" );
 }
+
+{
+    # format_isoz must output date in UTC
+    my $eastern_date = DateTime->new(
+        year   => 2010,
+        month  => 10,
+        day    => 21,
+        hour   => 13,
+        minute => 8,
+        second => 23,
+        time_zone => 'America/New_York',
+    );
+
+    # Get the ISO "Z" format of the eastern zone date time
+    my $isoz = $class->format_isoz($eastern_date);
+
+    # Get the actual UTC date time
+    my $utc = $eastern_date->clone->set_time_zone('UTC');
+
+    is($isoz, $class->format_isoz($utc), 'format_isoz converts to UTC time zone');
+    is($eastern_date->time_zone->name, 'America/New_York', 'format_isoz does not modify input date\'s time zone');
+}




More information about the Pkg-perl-cvs-commits mailing list