Skip Menu |

This queue is for tickets about the DateTime-Format-RFC3339 CPAN distribution.

Report information
The Basics
Id: 50451
Status: resolved
Priority: 0/
Queue: DateTime-Format-RFC3339

People
Owner: IKEGAMI [...] cpan.org
Requestors: perl [...] okko.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • v1.0.1
  • v1.0.0
Fixed in: v1.0.2



Subject: parse_datetime emits warnings when parsing fractions of second
With code: use DateTime::Format::RFC3339; my $f = DateTime::Format::RFC3339->new(); my $dt = $f->parse_datetime('2009-07-10T13:12:44.731+03:00'); These are warned: Use of uninitialized value in string at .../lib/perl5/DateTime/Format/RFC3339.pm line 54. Argument "" isn't numeric in addition (+) at .../lib/perl5/DateTime/Format/RFC3339.pm line 54. The line 54 is: my $ns = $str =~ s/^\.(\d{1,9})\d*// ? 0+substr("$1000000000",0,9) : 0;
Subject: Re: [rt.cpan.org #50451] parse_datetime emits warnings when parsing fractions of second
Date: Tue, 13 Oct 2009 14:17:22 -0400
To: bug-DateTime-Format-RFC3339 [...] rt.cpan.org, perl [...] okko.net
From: Eric Brine <ikegami [...] adaelis.com>
On Tue, Oct 13, 2009 at 10:59 AM, Oskari Ojala via RT < bug-DateTime-Format-RFC3339@rt.cpan.org> wrote: Show quoted text
> With code: > > use DateTime::Format::RFC3339; > > my $f = DateTime::Format::RFC3339->new(); > my $dt = $f->parse_datetime('2009-07-10T13:12:44.731+03:00'); > > These are warned: >
Fixed in v1.0.2 v1.0.2 will appear at your local CPAN mirror shortly: http://search.cpan.org/CPAN/authors/id/I/IK/IKEGAMI/ In the meantime, it can be obtained from: ftp://pause.perl.org/pub/PAUSE/authors/id/I/IK/IKEGAMI/