Skip to content

Commit

Permalink
Fix the month generator so that it includes the first day of the curr…
Browse files Browse the repository at this point in the history
…ent month even if called on that day.
  • Loading branch information
iay committed Jun 1, 2011
1 parent 28e20a7 commit a2cc097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charting/Months.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $date = new Date::Manip::Date;
$date->parse_date('2006-12-01') && die('could not parse base date');

$now = new Date::Manip::Date;
$now->parse('today') && die('could not parse today');
$now->parse('now') && die('could not parse now');

$oneMonth = new Date::Manip::Delta;
$oneMonth->parse("1 month") && die('could not parse delta');
Expand Down

0 comments on commit a2cc097

Please sign in to comment.