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: german date is not parsed correctly
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.11-5
Severity: normal

In Germany, most dates are written in a dd.mm.yy or dd.mm.yyyy
fashion. However Date::Parse interprets dates as mm.dd.yy like in the
english speaking countries:

--
#!/usr/bin/perl

use Date::Parse;
use Date::Language;

$lang = Date::Language->new('German');
$blub = $lang->str2time("13.5.1974");

$dreck = localtime($blub);

print "$dreck\n";
--

aylee /tmp> ./gtest.pl 
Month '12' out of range 0..11 at /usr/share/perl5/Date/Language.pm line 79

CU
   Thimo

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux aylee 2.4.19 #2 Fre Nov 8 22:29:43 CET 2002 i686
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro

Versions of packages libtimedate-perl depends on:
ii  perl                          5.6.1-7    Larry Wall's Practical Extraction 



--- 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