Subject: | invalid dates accepted as valid |
Date: | Thu, 2 Jul 2015 16:20:32 +0000 |
To: | "'bug-Date-Manip [...] rt.cpan.org'" <bug-Date-Manip [...] rt.cpan.org> |
From: | "Shupak, Vitaly" <Vitaly.Shupak [...] deshaw.com> |
The latest version of Date::Manip (at least since 6.41) accepts dates that are not valid:
6.41, 6.50
$ perl -MDate::Manip -le '$m=UnixDate("20141301","%Y%m%d %H:%M:%S") or die("Invalid date\n");print $m;'
20160220 14:05:06
6.24
$ perl -MDate::Manip -le '$m=UnixDate("20141301","%Y%m%d %H:%M:%S") or die("Invalid date\n");print $m;'
Invalid date
Is this a bug?
Thanks,
Vitaly