Subject: | prefer_future gives bogus results if the original result would have been in the future. |
Date: | Thu, 30 Aug 2007 12:12:11 -0400 |
To: | bug-datetime-format-natural [...] rt.cpan.org |
From: | Jesse Vincent <jesse [...] bestpractical.com> |
DB<5> $parser =
DateTime::Format::Natural->new( prefer_future => 0);
DB<6> $dt =
$parser->parse_datetime('Saturday');
DB<7> print $dt;
2007-09-01T16:05:36
DB<8> $parser =
DateTime::Format::Natural->new( prefer_future => 1);
DB<9> $dt =
$parser->parse_datetime('Saturday');
DB<10> print $dt;
2007-09-08T16:11:33
DB<11> print
DateTime->now
2007-08-30T16:11:46
DB<12>
Message body not shown because it is not plain text.