Your message dated Fri, 16 Aug 2013 01:31:53 +0200
with message-id <[email protected]>
and subject line Re: libtimedate-perl: Doesn't respect locale when parsing 
short dates (nn/nn/nn)
has caused the Debian Bug report #557738,
regarding libtimedate-perl: Doesn't respect locale when parsing short dates 
(nn/nn/nn)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
557738: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557738
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libtimedate-perl
Version: 1.08-4
Severity: normal

Date::Parse always parses aa/bb/cc as mm/dd/yy, even when the locale is set
(in Europe aa/bb/cc is interpreted as dd/mm/yy usually). Example:

$ echo $LANG; perl -MDate::Parse -e \
"print scalar(localtime(str2time('1/4/00'))),\"\n\";"

en_GB
Tue Jan  4 00:00:00 2000

I believe the locale (LC_TIME?) should provide enough information for
Date::Parse to figure this out :-)

-- System Information
Debian Release: 2.2
Kernel Version: Linux lamia 2.3.99-pre3+ikd #20 Sun Mar 26 21:23:07 BST 2000 
i686 unknown

Versions of the packages libtimedate-perl depends on:
ii  perl-5.005     5.005.03-6     Larry Wall's Practical Extracting and Report
        ^^^ (Provides virtual package perl5)

--- End Message ---
--- Begin Message ---
Version: 1.2000-1

On 2013-08-16 01:28:41 +0200, Vincent Lefevre wrote:
> This is obviously not the same bug as the other ones. Bug 557738
> has actually been fixed. The problem was due to the $year+1900 in
> 
>   http://cpansearch.perl.org/src/GBARR/TimeDate-1.19/lib/Date/Parse.pm
> 
> (module version 2.29). The "+1900" has been removed in
> 
>   http://cpansearch.perl.org/src/GBARR/TimeDate-2.30/lib/Date/Parse.pm
> 
> (module version 2.30), and the called function does the right
> 2-digit -> 4-digit conversion.

and libtimedate-perl 1.2000-1 has the fixed version:

$ perl -MDate::Parse -e \
  'print gmtime(str2time("26 Apr 07 21:38:23 -0700"))."\n"'
Fri Apr 27 04:38:23 2007

-- 
Vincent Lefèvre <[email protected]> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

--- End Message ---

Reply via email to