Bug#665809: libdate-manip-perl: ParseDate breaks on non-existing times during DST change

Andy Spiegl reportbug.andy at spiegl.de
Mon Mar 26 10:57:23 UTC 2012


Package: libdate-manip-perl
Version: 6.11-1
Severity: normal


Date::Manip does not handle the case correctly where a specified time
lies in a non-existing gap, e.g. here in Germany between 2am and 3am
when the time is skipping one hour.

Try this to reproduce the bug:

---8<----8<-----8<-----8<-----8<-----8<-----8<---
#!/usr/bin/perl

use strict; use warnings;

use Date::Manip;

&Date_Init();

my $d = ParseDate("2012-03-25 at 02:11");

---8<----8<-----8<-----8<-----8<-----8<-----8<---

Use of uninitialized value $y in length at /usr/share/perl5/Date/Manip/Base.pm line 2225.
Use of uninitialized value $y in concatenation (.) or string at /usr/share/perl5/Date/Manip/Base.pm line 2226.
Use of uninitialized value $m in length at /usr/share/perl5/Date/Manip/Base.pm line 2228.
Use of uninitialized value $d in length at /usr/share/perl5/Date/Manip/Base.pm line 2229.
Use of uninitialized value $h in length at /usr/share/perl5/Date/Manip/Base.pm line 2230.
Use of uninitialized value $mn in length at /usr/share/perl5/Date/Manip/Base.pm line 2231.
Use of uninitialized value $s in length at /usr/share/perl5/Date/Manip/Base.pm line 2232.
Use of uninitialized value $m in concatenation (.) or string at /usr/share/perl5/Date/Manip/Base.pm line 2233.
Use of uninitialized value $d in concatenation (.) or string at /usr/share/perl5/Date/Manip/Base.pm line 2233.
Use of uninitialized value $h in concatenation (.) or string at /usr/share/perl5/Date/Manip/Base.pm line 2233.
Use of uninitialized value $mn in concatenation (.) or string at /usr/share/perl5/Date/Manip/Base.pm line 2233.
Use of uninitialized value $s in concatenation (.) or string at /usr/share/perl5/Date/Manip/Base.pm line 2233.
Use of uninitialized value $beg in string comparison (cmp) at /usr/share/perl5/Date/Manip/TZ.pm line 1069.
Use of uninitialized value $end in string comparison (cmp) at /usr/share/perl5/Date/Manip/TZ.pm line 1071.
Use of uninitialized value $year in addition (+) at /usr/share/perl5/Date/Manip/TZ.pm line 1072.

---8<----8<-----8<-----8<-----8<-----8<-----8<---

-- System Information:
Debian Release: 6.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libdate-manip-perl depends on:
ii  libyaml-syck-perl      1.12-1            Perl module providing a fast, ligh
ii  perl                   5.10.1-17squeeze3 Larry Wall's Practical Extraction 

libdate-manip-perl recommends no packages.

libdate-manip-perl suggests no packages.

-- no debconf information





More information about the pkg-perl-maintainers mailing list