Skip to content

Commit

Permalink
ParseCron indirect bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yegg committed May 9, 2012
1 parent 73dd755 commit ca9ee6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DDG/Goodie/ParseCron.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ handle remainder => sub {
my $newday=$_+1;
$crontab =~ s/$day[$_]/$newday/;
}
my $cron = new Schedule::Cron::Events($crontab) or return;
my $cron = Schedule::Cron::Events->new($crontab) or return;
my ($sec, $min, $hour, $day, $month, $year) = $cron->nextEvent;
$year = $year+1900;
my $text = sprintf qq(Cron will start this event next at %02d:%02d:%02d on %d %s, %d), $hour, $min, $sec, $day, $mon[$month], $year;
Expand Down

0 comments on commit ca9ee6a

Please sign in to comment.