severity 557738 wishlist tags 557738 + wontfix upstream forwarded 557738 gb...@pobox.com stop
Hello I tag this as wontfix according to the upstream authors reply. bye, -christian- Am Sun, 29 Nov 2009 13:50:00 -0600 schrieb Graham Barr <gb...@pobox.com>: > I disagree 2007 is the correct answer, 07 is ambiguous so expecting > 2007 is just as wrong as 1907 IMO. > > Graham. > > > On Nov 29, 2009, at 12:38 PM, Christian Hammers wrote: > > > Hello Graham > > > > Attached is a bug report against Time::Date Perl which I got via > > the Debian bug tracking system. > > > > bye, > > > > -christian- > > > > > > Start weitergeleitete Nachricht: > > > > Datum: Tue, 24 Nov 2009 02:59:36 +0100 > > Von: Vincent Lefevre <vinc...@vinc17.net> > > An: Debian Bug Tracking System <sub...@bugs.debian.org> > > Betreff: Bug#557738: libtimedate-perl: RFC2822 dates with 2-digit > > year are not parsed correctly (regression) > > > > > > Package: libtimedate-perl > > Version: 1.1900-1 > > Severity: normal > > > > With libtimedate-perl 1.1600-9: > > > > $ perl -MDate::Parse -e \ > > 'print gmtime(str2time("26 Apr 07 21:38:23 -0700"))."\n"' > > Fri Apr 27 04:38:23 2007 > > > > This is OK. But with libtimedate-perl 1.1900-1: > > > > $ perl -MDate::Parse -e \ > > 'print gmtime(str2time("26 Apr 07 21:38:23 -0700"))."\n"' > > Sat Apr 27 04:38:23 1907 > > > > The year is incorrect. > > > > Even though a 2-digit year may be ambiguous (still generated by some > > software unfortunately), 2007 is the correct interpretation. > > > > I suggest to use the rule specified by the RFC 2822: > > > > Where a two or three digit year occurs in a date, the year is to > > be interpreted as follows: If a two digit year is encountered whose > > value is between 00 and 49, the year is interpreted by adding > > 2000, ending up with a value between 2000 and 2049. If a two digit > > year is encountered with a value between 50 and 99, or any three > > digit year is encountered, the year is interpreted by adding 1900. > > > > -- System Information: > > Debian Release: squeeze/sid > > APT prefers unstable > > APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental') > > Architecture: amd64 (x86_64) > > > > Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores) > > Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1) > > Shell: /bin/sh linked to /bin/dash > > > > Versions of packages libtimedate-perl depends on: > > ii perl 5.10.1-8 Larry Wall's Practical > > Extraction > > > > libtimedate-perl recommends no packages. > > > > libtimedate-perl suggests no packages. > > > > -- no debconf information > > > > > -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org