perl Time::Format module's $time returns negative milliseconds

Bug #1412071 reported by DJ Stauffer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libtime-format-perl (Debian)
Fix Released
Unknown
libtime-format-perl (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I'm using Linux Mint 17.

perl -version reports:
This is perl 5, version 18, subversion 2 (v5.18.2) built for i686-linux-gnu-thread-multi-64int

dpkg-query -l perl:
ii perl 5.18.2-2ubuntu1 i386 Larry Wall's Practical Extraction and Report Language

dpkg-query -l libtime-format-perl:
ii libtime-format-perl 1.11-1 all module for easy date/time formatting

You can duplicate the problem by running:

perl -e 'use Time::Format qw(%time %strftime); print $time{"yyyymmdd.hhmmss.mmm"}'

which will produce something like:
20150117.160824.-617

I found this perlmonks link from 2009 which addresses the bug:

http://www.perlmonks.org/?node_id=750652

Which references this bug report:

https://rt.cpan.org/Public/Bug/Display.html?id=44167

And that bug report says it is fixed in version 1.12

For the record, the patch does seem to fix the bug (for me). But March of 2009 was a *long* time ago (almost 6 years) -- is this bug going to be patched for the 1.11 version, or are there any plans to update to 1.12?

Vlad Orlov (monsta)
affects: linuxmint → libtime-format-perl (Ubuntu)
Revision history for this message
gregor herrmann (gregoa) wrote : Re: [Pkg-perl-maintainers] [Bug 1412071] [NEW] perl Time::Format module's $time returns negative milliseconds

On Tue, 27 Jan 2015 13:31:54 -0000, Launchpad Bug Tracker wrote:

> I'm using Linux Mint 17.
>
> dpkg-query -l libtime-format-perl:
> ii libtime-format-perl 1.11-1 all module for easy date/time formatting
>
> You can duplicate the problem by running:
> perl -e 'use Time::Format qw(%time %strftime); print $time{"yyyymmdd.hhmmss.mmm"}'
>
> which will produce something like:
> 20150117.160824.-617

Confirmed on Debian jessie, same version of libtime-format-perl:

# amd64 chroot:
% perl -E 'use Time::Format qw(%time %strftime); say $time{"yyyymmdd.hhmmss.mmm"}'
20150127.181509.-358

# i386 chroot:
% perl -E 'use Time::Format qw(%time %strftime); say $time{"yyyymmdd.hhmmss.mmm"}'
20150127.181746.-405

> I found this perlmonks link from 2009 which addresses the bug:
> http://www.perlmonks.org/?node_id=750652
> Which references this bug report:
> https://rt.cpan.org/Public/Bug/Display.html?id=44167
> And that bug report says it is fixed in version 1.12

Thanks.

> For the record, the patch does seem to fix the bug (for me). But March
> of 2009 was a *long* time ago (almost 6 years) -- is this bug going to
> be patched for the 1.11 version, or are there any plans to update to
> 1.12?

1.12 is in our [0] git repo but not uploaded; according to our notes,
there were problems with some tests ...

Not sure if this bug (which doesn't seem to have affected anyone in Debian or Ubuntu
in ages) warrants an upload to Debian during the freeze; in any case,
I'm submitting it the Debian BTS now.

Cheers,
gregor, Debian Perl Group

--
 .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/
 `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `- NP: DKP: Die Internationale

NP: Elton John: The One

Changed in libtime-format-perl (Debian):
status: Unknown → Confirmed
Changed in libtime-format-perl (Debian):
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libtime-format-perl - 1.12-1

---------------
libtime-format-perl (1.12-1) unstable; urgency=low

  * Team upload.

  [ gregor herrmann ]
  * New upstream release.
    Fixes "Time::Format module's $time returns negative milliseconds"
    (Closes: #776406, LP: #1412071)
  * Update years of upstream copyright.
  * debian/copyright: update to Copyright-Format 1.0.
  * Bump Standards-Version to 3.9.4 (no changes).
  * Add upstream recommended packages to Recommends.
  * Add build dependency on Module::Build 0.40.
  * Add some build dependencies to enable additional tests.

  [ Salvatore Bonaccorso ]
  * Change Vcs-Git to canonical URI (git://anonscm.debian.org)
  * Change search.cpan.org based URIs to metacpan.org based URIs

  [ gregor herrmann ]
  * Strip trailing slash from metacpan URLs.

  [ Salvatore Bonaccorso ]
  * Update Vcs-Browser URL to cgit web frontend

  [ gregor herrmann ]
  * debian/control: update Module::Build dependency.
  * Add patch to fix test failures. Taken from CPAN RT#99572.
  * Declare compliance with Debian Policy 3.9.6.
  * Mark package as autopkgtest-able.

 -- gregor herrmann <email address hidden> Fri, 01 May 2015 16:24:51 +0200

Changed in libtime-format-perl (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.